| 1 |
// RUN: %clang_cc1 %s -emit-llvm -o - |
| 2 |
|
| 3 |
struct tree_common {}; |
| 4 |
|
| 5 |
struct 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 |
|
| 13 |
enum XXX { yyy }; |
| 14 |
|
| 15 |
struct 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 |
|
| 23 |
union tree_node { |
| 24 |
struct tree_int_cst int_cst; |
| 25 |
struct tree_function_decl function_decl; |
| 26 |
}; |
| 27 |
|
| 28 |
|
| 29 |
void foo (union tree_node * decl) { |
| 30 |
decl->function_decl.built_in_class != 0; |
| 31 |
} |
| 32 |
|
| 33 |
|