llvm-project/llvm/test/FrontendC/2006-10-30-ArrayCrash.c

18 lines
184 B
C
Raw Normal View History

2006-10-31 14:25:13 +08:00
// RUN: %llvmgcc -O3 -S -o - %s
2006-10-31 14:26:10 +08:00
// PR954, PR911
2006-10-31 14:25:13 +08:00
extern void foo();
struct S {
short f1[3];
unsigned int f2 : 1;
};
void bar()
{
struct S *A;
if (A->f2)
foo();
}