Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
other
/
anon3.C
blob: d33eb413ccfa53d8915faa3da4a36c8a7713e3a1 [
file
] [
log
] [
blame
]
// 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 "unnamed type" "" { target { ! c++11 } } }