Fix the clang-wpa example.
[clang.git] / test / CodeGen / func-return-member.c
blob8c55a9671cd05d73bf69ce0651b32f7520c888aa
1 // RUN: %clang_cc1 -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: define void @bar
14 void bar(void) {
15 X = foo().f.f.x;
18 // CHECK: define void @bun
19 void bun(void) {
20 F = foo().f.f;
23 // CHECK: define void @ban
24 void ban(void) {
25 C = foo().f.f.c;