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