1 // { dg-do run } 2 extern "C" void abort(); 3 4 struct A 5 { 6 enum { a = 3}* p; fA7 int f() { return (int) a; } 8 }; 9 main()10 int main() 11 { 12 A a; 13 14 if (a.f() != 3) 15 abort(); 16 } 17