From: Chris Lattner Date: Tue, 30 Jul 2002 06:05:40 +0000 (+0000) Subject: New testcase found when working on union support *sigh* X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a7e2dd4847b6817c8603857b991d00b614ff6670;p=oota-llvm.git New testcase found when working on union support *sigh* git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3149 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CFrontend/2002-07-30-SubregSetAssertion.c b/test/CFrontend/2002-07-30-SubregSetAssertion.c new file mode 100644 index 00000000000..5316e74876b --- /dev/null +++ b/test/CFrontend/2002-07-30-SubregSetAssertion.c @@ -0,0 +1,13 @@ + +union X { + //char C; + //int A; + void *B; +}; + +union X foo(union X A) { + //A.C = 123; + //A.A = 39249; + A.B = (void*)123040123321; + return A; +}