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 | fce71b8ea53b6eb9c1630da24659289bc848f837 (patch) | |
tree | 1a34d82794724e107686f650bdb6952508432925 /test/CodeGen/types.c | |
parent | 71de20ef8bf50e83f60d4b191cc6797cf27853d3 (diff) |
Fix PR2081 (problems codegen'ing some recursive structures) patch
by Lauro Venancio!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49144 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/types.c')
-rw-r--r-- | test/CodeGen/types.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/types.c b/test/CodeGen/types.c index 2bbcec106a..c542a758b8 100644 --- a/test/CodeGen/types.c +++ b/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) { +} |