From a7e2dd4847b6817c8603857b991d00b614ff6670 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 30 Jul 2002 06:05:40 +0000 Subject: [PATCH] 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 --- test/CFrontend/2002-07-30-SubregSetAssertion.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/CFrontend/2002-07-30-SubregSetAssertion.c 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; +} -- 2.34.1