projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Need -O1 or better to have these builtins lowered to
[oota-llvm.git]
/
test
/
CFrontend
/
2002-08-02-UnionTest.c
diff --git
a/test/CFrontend/2002-08-02-UnionTest.c
b/test/CFrontend/2002-08-02-UnionTest.c
index b9e2c2e0506f974e432af3b29152c664ed81d740..bc44e461dec5119b7be84159c2bb0b19a095895f 100644
(file)
--- a/
test/CFrontend/2002-08-02-UnionTest.c
+++ b/
test/CFrontend/2002-08-02-UnionTest.c
@@
-8,12
+8,12
@@
union X { char X; void *B; int a, b, c, d;};
union X foo() {
union X { char X; void *B; int a, b, c, d;};
union X foo() {
-
union X Global;
-
Global.B = (void*)123; /* Interesting part */
-
return Global;
+ union X Global;
+ Global.B = (void*)123; /* Interesting part */
+ return Global;
}
void main() {
}
void main() {
-
union X test = foo();
-
printf("0x%p", test.B);
+ union X test = foo();
+ printf("0x%p", test.B);
}
}