aboutsummaryrefslogtreecommitdiffstats
path: root/test/CFrontend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-30 06:05:40 +0000
committerChris Lattner <sabre@nondot.org>2002-07-30 06:05:40 +0000
commita7e2dd4847b6817c8603857b991d00b614ff6670 (patch)
tree47320be0160341abb6ad9206775b5d1754c4678b /test/CFrontend
parentfd5951c16b1b2825b2bc34fa72b4fed5ab7502c9 (diff)
downloadexternal_llvm-a7e2dd4847b6817c8603857b991d00b614ff6670.zip
external_llvm-a7e2dd4847b6817c8603857b991d00b614ff6670.tar.gz
external_llvm-a7e2dd4847b6817c8603857b991d00b614ff6670.tar.bz2
New testcase found when working on union support *sigh*
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3149 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend')
-rw-r--r--test/CFrontend/2002-07-30-SubregSetAssertion.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CFrontend/2002-07-30-SubregSetAssertion.c b/test/CFrontend/2002-07-30-SubregSetAssertion.c
new file mode 100644
index 0000000..5316e74
--- /dev/null
+++ b/test/CFrontend/2002-07-30-SubregSetAssertion.c
@@ -0,0 +1,13 @@
+
+union X {
+ //char C;
+ //int A;
+ void *B;
+};
+
+union X foo(union X A) {
+ //A.C = 123;
+ //A.A = 39249;
+ A.B = (void*)123040123321;
+ return A;
+}