summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/prof-robust-1.C
blob: a5d8cb3c47088eef67a5d8845575f90587d16960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* { dg-options "-O2 -fno-weak" } */

#include <stdio.h>

namespace {
  namespace {
    
    class MyClass {
    public:
      void foo() const;
      ~MyClass() { foo(); }
    };
    
    void MyClass::foo() const { printf("Goodbye World\n"); }
    
  }
  
  static MyClass variable;
  
}

int main() {
  return 0;
}