aboutsummaryrefslogtreecommitdiff
path: root/testcases/pass.c
diff options
context:
space:
mode:
Diffstat (limited to 'testcases/pass.c')
-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;