1 // pr c++/15049 2 // Origin: Matt Austern <austern@apple.com> 3 // Test that we can declare a global variable whose type is anonymous. 4 5 // { dg-do compile } 6 7 enum { a = 3 } x; // { dg-warning "unnamed type" "" { target { ! c++11 } } } 8