xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/cast-emit.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc typedef union {
4*f4a2713aSLionel Sambuc   int    i;
5*f4a2713aSLionel Sambuc   float  f;
6*f4a2713aSLionel Sambuc } MyUnion;
7*f4a2713aSLionel Sambuc void unionf(MyUnion a);
uniontest(float a)8*f4a2713aSLionel Sambuc void uniontest(float a) {
9*f4a2713aSLionel Sambuc   f((MyUnion)1.0f);
10*f4a2713aSLionel Sambuc // CHECK: store float 1.000000e+00
11*f4a2713aSLionel Sambuc }
12*f4a2713aSLionel Sambuc 
13