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: main()6 void main () { 7 } 8 public: fred()9 fred ( ) { 10 &fred::main; 11 } 12 }; 13