gcc/testsuite/g++.dg/prof-robust-1.C
raw| 1 | /* { dg-options "-O2 -fno-weak" } */ |
| 2 | |
| 3 | #include <stdio.h> |
| 4 | |
| 5 | namespace { |
| 6 | namespace { |
| 7 | |
| 8 | class MyClass { |
| 9 | public: |
| 10 | void foo() const; |
| 11 | ~MyClass() { foo(); } |
| 12 | }; |
| 13 | |
| 14 | void MyClass::foo() const { printf("Goodbye World\n"); } |
| 15 | |
| 16 | } |
| 17 | |
| 18 | static MyClass variable; |
| 19 | |
| 20 | } |
| 21 | |
| 22 | int main() { |
| 23 | return 0; |
| 24 | } |