aboutsummaryrefslogtreecommitdiffstats
path: root/test/Feature
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-29 17:36:02 +0000
committerChris Lattner <sabre@nondot.org>2010-03-29 17:36:02 +0000
commitd8bc45e702c9f21f49bec275280529d1ea8384a0 (patch)
treed3f4c55571ca1cdf3021b5fc05f93ea27f47881e /test/Feature
parentabc2b350dfc1e7fb434e35688d6f1a3b0ab71e96 (diff)
downloadexternal_llvm-d8bc45e702c9f21f49bec275280529d1ea8384a0.zip
external_llvm-d8bc45e702c9f21f49bec275280529d1ea8384a0.tar.gz
external_llvm-d8bc45e702c9f21f49bec275280529d1ea8384a0.tar.bz2
add support for zero initialized unions, patch by Tim Northover!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99818 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature')
-rw-r--r--test/Feature/unions.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Feature/unions.ll b/test/Feature/unions.ll
index 9d6c36b..3cf8c3c 100644
--- a/test/Feature/unions.ll
+++ b/test/Feature/unions.ll
@@ -6,7 +6,9 @@
@union1 = constant union { i32, i8 } { i32 4 }
@union2 = constant union { i32, i8 } insertvalue(union { i32, i8 } undef, i32 4, 0)
+@union3 = common global %union.anon zeroinitializer, align 8
define void @"Unions" () {
ret void
}
+