Aaron Ballman | 1dfc4ba | 2012-06-01 00:02:08 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify -pedantic %s |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Aaron Ballman | 1dfc4ba | 2012-06-01 00:02:08 +0000 | [diff] [blame] | 3 | |
4 | namespace PR12866 { | ||||
5 | struct bar { | ||||
6 | union { | ||||
7 | int member; | ||||
8 | }; | ||||
9 | }; | ||||
10 | |||||
11 | void foo( void ) { | ||||
12 | (void)sizeof(bar::member); | ||||
13 | } | ||||
14 | } |