2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
|
2007-12-29 13:02:41 +08: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-21 01:23:39 +08:00
|
|
|
// CHECK: define void @bar
|
2007-12-29 13:02:41 +08:00
|
|
|
void bar(void) {
|
|
|
|
X = foo().f.f.x;
|
|
|
|
}
|
|
|
|
|
2009-11-21 01:23:39 +08:00
|
|
|
// CHECK: define void @bun
|
2007-12-29 13:02:41 +08:00
|
|
|
void bun(void) {
|
|
|
|
F = foo().f.f;
|
|
|
|
}
|
|
|
|
|
2009-11-21 01:23:39 +08:00
|
|
|
// CHECK: define void @ban
|
2007-12-29 13:02:41 +08:00
|
|
|
void ban(void) {
|
|
|
|
C = foo().f.f.c;
|
|
|
|
}
|