summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-03 05:50:42 +0000
committerChris Lattner <sabre@nondot.org>2008-04-03 05:50:42 +0000
commite799eb5daab37c50ba7da32893e11d2221f418d4 (patch)
treeeb01f044c770354b4c571ad356f71049dc13b463 /clang/test
parent2289459bf65eecec2e6bf1104060134286e37173 (diff)
downloadbcm5719-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.c13
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) {
+}
OpenPOWER on IntegriCloud