Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / g++.dg / other / anon3.C
blob87116eb8901f7443909e9df37b133085905fbc9c
1 // pr c++/15049
2 // Origin: Matt Austern <austern@apple.com>
3 // Test that we can declare a global variable whose type is anonymous.
5 // { dg-do compile }
7 enum { a = 3 } x; // { dg-warning "anonymous type" }