aboutsummaryrefslogtreecommitdiff
path: root/testcases
diff options
context:
space:
mode:
Diffstat (limited to 'testcases')
-rw-r--r--testcases/typedef1.c4
-rw-r--r--testcases/typedef2.c4
-rw-r--r--testcases/typedef3.c4
-rw-r--r--testcases/typedef4.c10
4 files changed, 22 insertions, 0 deletions
diff --git a/testcases/typedef1.c b/testcases/typedef1.c
new file mode 100644
index 0000000..e67c112
--- /dev/null
+++ b/testcases/typedef1.c
@@ -0,0 +1,4 @@
+int main() {
+ typedef int a;
+ int a();
+}
diff --git a/testcases/typedef2.c b/testcases/typedef2.c
new file mode 100644
index 0000000..be9f3a4
--- /dev/null
+++ b/testcases/typedef2.c
@@ -0,0 +1,4 @@
+int main() {
+ typedef int a;
+}
+int a;
diff --git a/testcases/typedef3.c b/testcases/typedef3.c
new file mode 100644
index 0000000..71c45d1
--- /dev/null
+++ b/testcases/typedef3.c
@@ -0,0 +1,4 @@
+typedef int a;
+int main() {
+}
+int a;
diff --git a/testcases/typedef4.c b/testcases/typedef4.c
new file mode 100644
index 0000000..0aeb0f4
--- /dev/null
+++ b/testcases/typedef4.c
@@ -0,0 +1,10 @@
+typedef struct I I;
+int incomp(I a);
+struct I { int i, j; };
+int incomp(I a) {}
+typedef int b;
+int main() {
+ I i;
+ b b;
+ incomp(i);
+}