aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-10 22:32:29 +0000
committerChris Lattner <sabre@nondot.org>2005-05-10 22:32:29 +0000
commit47f9607e5624e4d53cf0ee3d65c60187da67f7d2 (patch)
tree7f7f22bd5291c932b0aeaed0b7a3e4ae591e8222
parentc74fd7af26caea484fa13afe3a28e7dffa36b033 (diff)
new testcase for PR562
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21849 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CFrontend/2005-05-10-GlobalUnionInit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CFrontend/2005-05-10-GlobalUnionInit.c b/test/CFrontend/2005-05-10-GlobalUnionInit.c
new file mode 100644
index 0000000000..443064c921
--- /dev/null
+++ b/test/CFrontend/2005-05-10-GlobalUnionInit.c
@@ -0,0 +1,6 @@
+// RUN: %llvmgcc %s -S -o -
+
+union A { // { uint }
+ union B { double *C; } D;
+} E = { { (double*)12312 } };
+