☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
DRs
/
dr1940.C
☽
☼
gcc/testsuite/g++.dg/DRs/dr1940.C
code
plain
raw
1
// DR 1940 - static_assert in anonymous unions
2
// { dg-do compile { target c++11 } }
3
4
namespace N {
5
static union { int i; static_assert(1, ""); };
6
}
7
8
void
9
g ()
10
{
11
union { int j; static_assert(1, ""); };
12
N::i = 42;
13
}