1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 08:23:21 +01:00
llvm-mirror/test/FrontendC/2006-10-30-ArrayCrash.c

18 lines
184 B
C
Raw Normal View History

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