diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-03 05:50:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-03 05:50:42 +0000 |
commit | e799eb5daab37c50ba7da32893e11d2221f418d4 (patch) | |
tree | eb01f044c770354b4c571ad356f71049dc13b463 /clang/test | |
parent | 2289459bf65eecec2e6bf1104060134286e37173 (diff) | |
download | bcm5719-llvm-e799eb5daab37c50ba7da32893e11d2221f418d4.tar.gz bcm5719-llvm-e799eb5daab37c50ba7da32893e11d2221f418d4.zip |
Fix PR2081 (problems codegen'ing some recursive structures) patch
by Lauro Venancio!
llvm-svn: 49144
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/CodeGen/types.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGen/types.c b/clang/test/CodeGen/types.c index 2bbcec106a7..c542a758b8d 100644 --- a/clang/test/CodeGen/types.c +++ b/clang/test/CodeGen/types.c @@ -19,3 +19,16 @@ struct MpegEncContext; typedef struct MpegEncContext {int pb;} MpegEncContext; static void test2(void) {MpegEncContext s; s.pb;} + +struct Village; + +struct List { + struct Village *v; +}; + +struct Village { + struct List returned; +}; + +void test3(struct List a) { +} |