1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// { dg-do run } namespace { int i = 10; enum fish { one = 1, two = 2, red = 3, blue = 4 }; } extern "C" int printf (const char *, ...); int main(void) { if (i != 10) { return 1; } if (one != 1) { return 2; } }