aboutsummaryrefslogtreecommitdiff
path: root/testcases
diff options
context:
space:
mode:
authorTeddy <[email protected]>2014-04-12 23:02:31 +0800
committerTeddy <[email protected]>2014-04-12 23:02:31 +0800
commit62ac0453c49de5e4a7ac5673bd772c6484d6acf7 (patch)
tree04d3f7454afe89cba087b95bffe72bc245934bad /testcases
parentbbce3104de593c90b10778a379728f982bc3fdcb (diff)
fixed bugs in typedef (with struct/union)
Diffstat (limited to 'testcases')
-rw-r--r--testcases/pass.c9
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;