rt_gccstream/gcc/testsuite/g++.dg/other/anon3.C

8 lines
207 B
C

// pr c++/15049
// Origin: Matt Austern <austern@apple.com>
// Test that we can declare a global variable whose type is anonymous.
// { dg-do compile }
enum { a = 3 } x; // { dg-warning "anonymous type" }