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