aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/misc3.C
blob: d632cb733f9d93c47125ecd84e52bdf34cc14c1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Build don't link: 
// GROUPS passed miscellaneous-bugs
// The compiler should not error about taking the addr of main in this example.
class fred {
private:
  void main () {
  }
public:
  fred ( ) {
    &fred::main;
  }
};