New testcase for PR1744
[oota-llvm.git] / test / CFrontend / 2002-07-30-SubregSetAssertion.c
index 20314bfdfa7da10cc65a258e55f916f907732015..6d4f9f62058166f57c5a447bc95c1ef14bf6c4a6 100644 (file)
@@ -1,9 +1,12 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
 
 union X {
   void *B;
 };
 
-union X void foo() {
-       union X A;
-       A.B = (void*)123
+union X foo() {
+  union X A;
+  A.B = (void*)123;
+  return A;
 }