summaryrefslogtreecommitdiff
path: root/test/CFrontend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-23 22:09:26 +0000
committerChris Lattner <sabre@nondot.org>2003-08-23 22:09:26 +0000
commit47ddea2d2adc47337a4c296a5cd7b9dab30cfa23 (patch)
treec43119de364502144aee132cbb1fe046739d3125 /test/CFrontend
parentf44c6051e02ddb207d5928b4ef3cde956d2b5025 (diff)
downloadllvm-47ddea2d2adc47337a4c296a5cd7b9dab30cfa23.tar.gz
llvm-47ddea2d2adc47337a4c296a5cd7b9dab30cfa23.tar.bz2
llvm-47ddea2d2adc47337a4c296a5cd7b9dab30cfa23.tar.xz
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8085 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend')
-rw-r--r--test/CFrontend/2003-08-23-LocalUnionTest.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CFrontend/2003-08-23-LocalUnionTest.c b/test/CFrontend/2003-08-23-LocalUnionTest.c
new file mode 100644
index 0000000000..2558f98152
--- /dev/null
+++ b/test/CFrontend/2003-08-23-LocalUnionTest.c
@@ -0,0 +1,9 @@
+
+
+union foo { int X; };
+
+int test(union foo* F) {
+ {
+ union foo { float X; } A;
+ }
+}