projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
New testcase for PR1744
[oota-llvm.git]
/
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
index e00a3ce9452931920316b1d5bdab1fba38404116..6d4f9f62058166f57c5a447bc95c1ef14bf6c4a6 100644
(file)
--- a/
test/CFrontend/2002-07-30-SubregSetAssertion.c
+++ b/
test/CFrontend/2002-07-30-SubregSetAssertion.c
@@
-1,10
+1,12
@@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
union X {
void *B;
};
union X foo() {
-
union X A;
-
A.B = (void*)123;
-
return A;
+ union X A;
+ A.B = (void*)123;
+ return A;
}