Files
llvm-project/clang/test/CodeGen/func-return-member.c
Daniel Dunbar a45cf5b6b0 Rename clang to clang-cc.
Tests and drivers updated, still need to shuffle dirs.

llvm-svn: 67602
2009-03-24 02:24:46 +00:00

24 lines
381 B
C

// RUN: clang-cc -emit-llvm < %s 2>&1 | not grep 'cannot codegen this l-value expression yet'
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;
void bar(void) {
X = foo().f.f.x;
}
void bun(void) {
F = foo().f.f;
}
void ban(void) {
C = foo().f.f.c;
}