diff options
author | Teddy <[email protected]> | 2014-04-12 23:02:31 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2014-04-12 23:02:31 +0800 |
commit | 62ac0453c49de5e4a7ac5673bd772c6484d6acf7 (patch) | |
tree | 04d3f7454afe89cba087b95bffe72bc245934bad /testcases | |
parent | bbce3104de593c90b10778a379728f982bc3fdcb (diff) |
fixed bugs in typedef (with struct/union)
Diffstat (limited to 'testcases')
-rw-r--r-- | testcases/pass.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testcases/pass.c b/testcases/pass.c index e567680..1727c56 100644 --- a/testcases/pass.c +++ b/testcases/pass.c @@ -124,6 +124,15 @@ int typedef2() { } } +typedef struct TA { + int x; +} TA; +typedef struct TA TA; +int typedef_struct() { + TA a; + a.x = 1; +} + int main() { n.x = 1; n.y = 2; |