Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
      2 
      3 struct frk { float _Complex c; int x; };
      4 struct faz { struct frk f; };
      5 struct fuz { struct faz f; };
      6 
      7 extern struct fuz foo(void);
      8 
      9 int X;
     10 struct frk F;
     11 float _Complex C;
     12 
     13 // CHECK-LABEL: define void @bar
     14 void bar(void) {
     15   X = foo().f.f.x;
     16 }
     17 
     18 // CHECK-LABEL: define void @bun
     19 void bun(void) {
     20   F = foo().f.f;
     21 }
     22 
     23 // CHECK-LABEL: define void @ban
     24 void ban(void) {
     25   C = foo().f.f.c;
     26 }
     27