bolt/deps/llvm-18.1.8/clang/test/CodeGen/cast-emit.c

14 lines
229 B
C
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
extern int f();
typedef union {
int i;
float f;
} MyUnion;
void unionf(MyUnion a);
void uniontest(float a) {
f((MyUnion)1.0f);
// CHECK: store float 1.000000e+00
}