Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / 2006-10-30-ArrayCrash.c
blobad4498fec911be2ae1db3f51e9aabe485f400068
1 // RUN: %clang_cc1 -O3 -emit-llvm -o - %s
2 // PR954, PR911
4 extern void foo(void);
6 struct S {
7 short f1[3];
8 unsigned int f2 : 1;
9 };
11 void bar(void)
13 struct S *A;
15 if (A->f2)
16 foo();