[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / CodeGen / func-return-member.c
blob287e040f1361f3ac3fdde1e30a0f060237fa50bd
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
3 struct frk { float _Complex c; int x; };
4 struct faz { struct frk f; };
5 struct fuz { struct faz f; };
7 extern struct fuz foo(void);
9 int X;
10 struct frk F;
11 float _Complex C;
13 // CHECK-LABEL: define{{.*}} void @bar
14 void bar(void) {
15 X = foo().f.f.x;
18 // CHECK-LABEL: define{{.*}} void @bun
19 void bun(void) {
20 F = foo().f.f;
23 // CHECK-LABEL: define{{.*}} void @ban
24 void ban(void) {
25 C = foo().f.f.c;