blob: b1019da0a375429ead25cde146db3f4a86a8f4cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// RUN: clang-cc -emit-llvm %s -o - | FileCheck %s
// CHECK: w = global %0 { i32 2, [4 x i8] undef }
// CHECK: y = global %union.u { double 7.300000e+0{{[0]*}}1 }
union u { int i; double d; };
void foo() {
union u ola = (union u) 351;
union u olb = (union u) 1.0;
}
union u w = (union u)2;
union u y = (union u)73.0;
|