Debian Codegraph @

gcc/testsuite/g++.dg/DRs/dr1940.C

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 }