From eeb4570a0b65193e3dd56fd666547d053bee68f5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 31 Oct 2006 06:25:13 +0000 Subject: [PATCH] new testcase llvm-svn: 31308 --- .../Regression/CFrontend/2006-10-30-ArrayCrash.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/Regression/CFrontend/2006-10-30-ArrayCrash.c diff --git a/test/Regression/CFrontend/2006-10-30-ArrayCrash.c b/test/Regression/CFrontend/2006-10-30-ArrayCrash.c new file mode 100644 index 00000000000..b0663c1f1f0 --- /dev/null +++ b/test/Regression/CFrontend/2006-10-30-ArrayCrash.c @@ -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(); +}