blob: 707c2d58f9dc3cbfd8960cefbc70b5c67e531e00 (
plain)
1
2
3
4
5
6
7
|
// 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" "" { target c++98 } }
|