From: Chris Lattner Date: Wed, 19 Oct 2005 00:52:21 +0000 (+0000) Subject: Testcase that crashes llvmgcc in type layout X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=07c375d6f604610f97447467044e424d8d74ec1f;p=oota-llvm.git Testcase that crashes llvmgcc in type layout git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23806 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CFrontend/2005-10-18-VariableSizedElementCrash.c b/test/CFrontend/2005-10-18-VariableSizedElementCrash.c new file mode 100644 index 00000000000..9efa1108eda --- /dev/null +++ b/test/CFrontend/2005-10-18-VariableSizedElementCrash.c @@ -0,0 +1,9 @@ +// RUN: %llvmgcc %s -S -o - +// XFAIL: * +int sub1(int i, char *pi) { + typedef int foo[i]; + struct bar {foo f1; int f2:3; int f3:4} *p = (struct bar *) pi; + xxx(p->f1); + return p->f3; +} +