summaryrefslogtreecommitdiffstats
path: root/llvm/test/CFrontend/2002-08-02-UnionTest.c
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-05-29 19:17:15 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-05-29 19:17:15 +0000
commitd8734cf9162bc74b3c7603e4e81cb04a983bd444 (patch)
tree34399f40ef982abd2e6d99a134561e4a2c2be1e2 /llvm/test/CFrontend/2002-08-02-UnionTest.c
parentd95dcd12c9413e6e4aea5cc63acbb0edeb5ac2da (diff)
downloadbcm5719-llvm-d8734cf9162bc74b3c7603e4e81cb04a983bd444.tar.gz
bcm5719-llvm-d8734cf9162bc74b3c7603e4e81cb04a983bd444.zip
For PR1338: Rename test dirs
llvm-svn: 51695
Diffstat (limited to 'llvm/test/CFrontend/2002-08-02-UnionTest.c')
-rw-r--r--llvm/test/CFrontend/2002-08-02-UnionTest.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/llvm/test/CFrontend/2002-08-02-UnionTest.c b/llvm/test/CFrontend/2002-08-02-UnionTest.c
deleted file mode 100644
index bc44e461dec..00000000000
--- a/llvm/test/CFrontend/2002-08-02-UnionTest.c
+++ /dev/null
@@ -1,19 +0,0 @@
-// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
-
-/* In this testcase, the return value of foo() is being promotedto a register
- * which breaks stuff
- */
-#include <stdio.h>
-
-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;
-}
-
-void main() {
- union X test = foo();
- printf("0x%p", test.B);
-}
OpenPOWER on IntegriCloud