OSDN Git Service

Addition of a whole slew of "eb" test cases generated from the egcs-bugs
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb35.C
1 // Build don't link:
2
3 class string
4 {
5 public:
6     string();
7     string(const string& x);
8     string(const char* t);
9
10     ~string();
11 };
12
13 void set_status(string message);
14
15 class StatusDelay {
16 private:
17     string cause;
18
19 public:
20     StatusDelay(const string& c)
21         : cause(c)
22     {
23         set_status(cause);
24     }
25
26     ~StatusDelay()
27     {
28         set_status(cause);
29     }
30 };
31
32 static char delay_message[] = "Filtering files";
33
34 static void searchRemote()
35 {
36     StatusDelay delay(delay_message);
37     return;
38 }