aboutsummaryrefslogtreecommitdiff
path: root/testcases/typedef4.c
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-04-13 13:05:29 +0800
committerTeddy <ted.sybil@gmail.com>2014-04-13 13:05:29 +0800
commitf881fd3eba1cafa1bea1f098ce8f383b4d6813ea (patch)
tree9127e7cf2342c0ae7ebbb4eed3637e39187685e9 /testcases/typedef4.c
parente8cbc056b7472c2c5438bdbd6571a40d5e1bcfcd (diff)
add more testcases for typedef
Diffstat (limited to 'testcases/typedef4.c')
-rw-r--r--testcases/typedef4.c10
1 files changed, 10 insertions, 0 deletions
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);
+}