repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
anon-struct5.C
blob
8b697ccbca7964903f2bff3fb3dead5ca1820077
1
// PR c++/30302
2
3
struct A
4
{
5
struct { static int i; }; // { dg-error "prohibits anonymous structs|an anonymous struct" }
6
void foo() { i; }
7
};
8
9
struct B
10
{
11
union { static int i; }; // { dg-error "an anonymous union|member of a union" }
12
void foo() { i; }
13
};