| 1 |
// { dg-do assemble } |
| 2 |
class string |
| 3 |
{ |
| 4 |
public: |
| 5 |
string(); |
| 6 |
string(const string& x); |
| 7 |
string(const char* t); |
| 8 |
|
| 9 |
~string(); |
| 10 |
}; |
| 11 |
|
| 12 |
void set_status(string message); |
| 13 |
|
| 14 |
class StatusDelay { |
| 15 |
private: |
| 16 |
string cause; |
| 17 |
|
| 18 |
public: |
| 19 |
StatusDelay(const string& c) |
| 20 |
: cause(c) |
| 21 |
{ |
| 22 |
set_status(cause); |
| 23 |
} |
| 24 |
|
| 25 |
~StatusDelay() |
| 26 |
{ |
| 27 |
set_status(cause); |
| 28 |
} |
| 29 |
}; |
| 30 |
|
| 31 |
static char delay_message[] = "Filtering files"; |
| 32 |
|
| 33 |
static void searchRemote() |
| 34 |
{ |
| 35 |
StatusDelay delay(delay_message); |
| 36 |
return; |
| 37 |
} |