aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/cast-to-union.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/cast-to-union.c')
-rw-r--r--test/CodeGen/cast-to-union.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/test/CodeGen/cast-to-union.c b/test/CodeGen/cast-to-union.c
deleted file mode 100644
index 1f7e0457706d..000000000000
--- a/test/CodeGen/cast-to-union.c
+++ /dev/null
@@ -1,14 +0,0 @@
-// 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 }
-// CHECK: store i32 351, i32
-
-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;