diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.robertl/eb38.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.robertl/eb38.C | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb38.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb38.C new file mode 100644 index 000000000..e4bcf32b6 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb38.C @@ -0,0 +1,37 @@ +// { dg-do assemble } +class string +{ +public: + string(); + string(const string& x); + string(const char* t); + + ~string(); +}; + +void set_status(string message); + +class StatusDelay { +private: + string cause; + +public: + StatusDelay(const string& c) + : cause(c) + { + set_status(cause); + } + + ~StatusDelay() + { + set_status(cause); + } +}; + +static char delay_message[] = "Filtering files"; + +static void searchRemote() +{ + StatusDelay delay(delay_message); + return; +} |