diff options
author | Devang Patel <dpatel@apple.com> | 2007-10-23 23:26:46 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-10-23 23:26:46 +0000 |
commit | 65c4afb9409441223ef2a78741025b30b1a3a38a (patch) | |
tree | 21679e2bbad1f614f25f22e17e7339fbf8a4992d /clang/test/CodeGen/struct.c | |
parent | 10f41524717d13f4c476da7cb2012fe008b37e1e (diff) | |
download | bcm5719-llvm-65c4afb9409441223ef2a78741025b30b1a3a38a.tar.gz bcm5719-llvm-65c4afb9409441223ef2a78741025b30b1a3a38a.zip |
Handle nested structs.
typdef struct A { int i; struct A *next; } A
llvm-svn: 43268
Diffstat (limited to 'clang/test/CodeGen/struct.c')
-rw-r--r-- | clang/test/CodeGen/struct.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/clang/test/CodeGen/struct.c b/clang/test/CodeGen/struct.c index a3753d314a6..cc6f0aaeeb1 100644 --- a/clang/test/CodeGen/struct.c +++ b/clang/test/CodeGen/struct.c @@ -37,3 +37,21 @@ int fn3(F2 *c) { else return 0; } + +/* Nested structs */ +typedef struct NA { + int data; + struct NA *next; +} NA; +void f1() { A a; } + +typedef struct NB { + int d1; + struct _B2 { + int d2; + struct NB *n2; + } B2; +} NB; + +void f2() { NB b; } + |