27 lines · c
1// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s2 3struct frk { float _Complex c; int x; };4struct faz { struct frk f; };5struct fuz { struct faz f; };6 7extern struct fuz foo(void);8 9int X;10struct frk F;11float _Complex C;12 13// CHECK-LABEL: define{{.*}} void @bar14void bar(void) {15 X = foo().f.f.x;16}17 18// CHECK-LABEL: define{{.*}} void @bun19void bun(void) {20 F = foo().f.f;21}22 23// CHECK-LABEL: define{{.*}} void @ban24void ban(void) {25 C = foo().f.f.c;26}27