2012-05-10 01:21:49 +04:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
|
2007-12-29 08:02:41 +03:00
|
|
|
|
|
|
|
struct frk { float _Complex c; int x; };
|
|
|
|
struct faz { struct frk f; };
|
|
|
|
struct fuz { struct faz f; };
|
|
|
|
|
|
|
|
extern struct fuz foo(void);
|
|
|
|
|
|
|
|
int X;
|
|
|
|
struct frk F;
|
|
|
|
float _Complex C;
|
|
|
|
|
2009-11-20 20:23:39 +03:00
|
|
|
// CHECK: define void @bar
|
2007-12-29 08:02:41 +03:00
|
|
|
void bar(void) {
|
|
|
|
X = foo().f.f.x;
|
|
|
|
}
|
|
|
|
|
2009-11-20 20:23:39 +03:00
|
|
|
// CHECK: define void @bun
|
2007-12-29 08:02:41 +03:00
|
|
|
void bun(void) {
|
|
|
|
F = foo().f.f;
|
|
|
|
}
|
|
|
|
|
2009-11-20 20:23:39 +03:00
|
|
|
// CHECK: define void @ban
|
2007-12-29 08:02:41 +03:00
|
|
|
void ban(void) {
|
|
|
|
C = foo().f.f.c;
|
|
|
|
}
|