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