Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / 2005-09-24-BitFieldCrash.c
blobd687d2f39d26da665fb9ab3c66c165ff3fcc39f8
1 // RUN: %clang_cc1 %s -emit-llvm -o -
3 struct tree_common {};
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;
13 enum XXX { yyy };
15 struct tree_function_decl {
16 struct tree_common common;
17 long long locus, y;
18 __extension__ enum XXX built_in_class : 2;
23 union tree_node {
24 struct tree_int_cst int_cst;
25 struct tree_function_decl function_decl;
29 void foo (union tree_node * decl) {
30 decl->function_decl.built_in_class != 0;