mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
new testcase
llvm-svn: 31308
This commit is contained in:
parent
333ac98bad
commit
eeb4570a0b
16
test/Regression/CFrontend/2006-10-30-ArrayCrash.c
Normal file
16
test/Regression/CFrontend/2006-10-30-ArrayCrash.c
Normal file
@ -0,0 +1,16 @@
|
||||
// RUN: %llvmgcc -O3 -S -o - %s
|
||||
|
||||
extern void foo();
|
||||
|
||||
struct S {
|
||||
short f1[3];
|
||||
unsigned int f2 : 1;
|
||||
};
|
||||
|
||||
void bar()
|
||||
{
|
||||
struct S *A;
|
||||
|
||||
if (A->f2)
|
||||
foo();
|
||||
}
|
Loading…
Reference in New Issue
Block a user