aboutsummaryrefslogtreecommitdiffstats
path: root/test/Feature/unions.ll
blob: 3cf8c3ce0e979cd96dbd533db60a2bd7737e3f09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llvm-as < %s | llvm-dis > %t1.ll
; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
; RUN: diff %t1.ll %t2.ll

%union.anon = type union { i8, i32, float }

@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
}