New testcase found when working on union support *sigh*
authorChris Lattner <sabre@nondot.org>
Tue, 30 Jul 2002 06:05:40 +0000 (06:05 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Jul 2002 06:05:40 +0000 (06:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3149 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2002-07-30-SubregSetAssertion.c [new file with mode: 0644]

diff --git a/test/CFrontend/2002-07-30-SubregSetAssertion.c b/test/CFrontend/2002-07-30-SubregSetAssertion.c
new file mode 100644 (file)
index 0000000..5316e74
--- /dev/null
@@ -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;
+}