Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.brendan/misc3.C

raw
1 // { dg-do assemble }
2 // GROUPS passed miscellaneous-bugs
3 // The compiler should not error about taking the addr of main in this example.
4 class fred {
5 private:
6 void main () {
7 }
8 public:
9 fred ( ) {
10 &fred::main;
11 }
12 };