Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-ryu-6486.B
/
.
/
gcc
/
testsuite
/
g++.dg
/
other
/
anon3.C
blob: 586a40e5eef608ff7f4ed654b9cb4a5368631043 [
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 "anonymous type" "" { target { ! c++11 } } }