Debian Codegraph @

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

raw
1 // pr c++/15049
2 // Origin: Matt Austern <[email protected]>
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 } } }