blob: d687d2f39d26da665fb9ab3c66c165ff3fcc39f8 [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// RUN: %clang_cc1 %s -emit-llvm -o -
2
3struct tree_common {};
4
5struct tree_int_cst {
6 struct tree_common common;
7 struct tree_int_cst_lowhi {
8 unsigned long long low;
9 long long high;
10 } int_cst;
11};
12
13enum XXX { yyy };
14
15struct tree_function_decl {
16 struct tree_common common;
17 long long locus, y;
18 __extension__ enum XXX built_in_class : 2;
19
20};
21
22
23union tree_node {
24 struct tree_int_cst int_cst;
25 struct tree_function_decl function_decl;
26};
27
28
29void foo (union tree_node * decl) {
30 decl->function_decl.built_in_class != 0;
31}
32
33