Eli Friedman | 18da88a | 2010-02-23 17:58:35 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s |
2 | |||||
3 | typedef union { | ||||
4 | int i; | ||||
5 | float f; | ||||
6 | } MyUnion; | ||||
7 | void unionf(MyUnion a); | ||||
8 | void uniontest(float a) { | ||||
9 | f((MyUnion)1.0f); | ||||
10 | // CHECK: store float 1.000000e+00 | ||||
11 | } | ||||
12 |