blob: b0dd1a874deb1faee4dbf1cfc3a441d7a5311d71 [file] [log] [blame]
Aaron Ballmana0bc0722012-06-01 00:02:08 +00001// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify -pedantic %s
Andy Gibbsc6e68da2012-10-19 12:44:48 +00002// expected-no-diagnostics
Aaron Ballmana0bc0722012-06-01 00:02:08 +00003
4namespace PR12866 {
5 struct bar {
6 union {
7 int member;
8 };
9 };
10
11 void foo( void ) {
12 (void)sizeof(bar::member);
13 }
14}
Aaron Ballmanf93ef4e2014-06-24 16:22:41 +000015
16namespace PR20021 {
17class C {
18 union {
19 static_assert(true, "");
20 int i;
21 };
22};
23}