From 62ac0453c49de5e4a7ac5673bd772c6484d6acf7 Mon Sep 17 00:00:00 2001 From: Teddy Date: Sat, 12 Apr 2014 23:02:31 +0800 Subject: fixed bugs in typedef (with struct/union) --- testcases/pass.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'testcases') 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; -- cgit v1.2.3