☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
other
/
anon3.C
☽
☼
gcc/testsuite/g++.dg/other/anon3.C
code
plain
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 } } }