aboutsummaryrefslogtreecommitdiff
path: root/testcases
diff options
context:
space:
mode:
authorTeddy <[email protected]>2014-04-06 10:26:37 +0800
committerTeddy <[email protected]>2014-04-06 10:26:37 +0800
commitf446f65340d41d6b4558a26912ba15e28059fe48 (patch)
tree8d1c1208787851dc92761422b4e360d35f98c885 /testcases
parent7384b7e2cbe9f40970c74bc5afe589c3df4fe24d (diff)
complex cast almost donecomplex_cast
Diffstat (limited to 'testcases')
-rw-r--r--testcases/cast.c3
-rw-r--r--testcases/cast2.c3
-rw-r--r--testcases/cast3.c3
-rw-r--r--testcases/fail10.c4
-rw-r--r--testcases/fail11.c4
-rw-r--r--testcases/fail8.c5
-rw-r--r--testcases/localfunc.c4
7 files changed, 26 insertions, 0 deletions
diff --git a/testcases/cast.c b/testcases/cast.c
new file mode 100644
index 0000000..b441552
--- /dev/null
+++ b/testcases/cast.c
@@ -0,0 +1,3 @@
+int main() {
+ ((int (*)(int a))1)(1);
+}
diff --git a/testcases/cast2.c b/testcases/cast2.c
new file mode 100644
index 0000000..34b3484
--- /dev/null
+++ b/testcases/cast2.c
@@ -0,0 +1,3 @@
+int main() {
+ (int [3])1;
+}
diff --git a/testcases/cast3.c b/testcases/cast3.c
new file mode 100644
index 0000000..4500cb1
--- /dev/null
+++ b/testcases/cast3.c
@@ -0,0 +1,3 @@
+int main() {
+ (int ())1;
+}
diff --git a/testcases/fail10.c b/testcases/fail10.c
new file mode 100644
index 0000000..e287c6f
--- /dev/null
+++ b/testcases/fail10.c
@@ -0,0 +1,4 @@
+int main() {
+ int a[2][3];
+ a[1][3][3] = 3;
+}
diff --git a/testcases/fail11.c b/testcases/fail11.c
new file mode 100644
index 0000000..4aa213a
--- /dev/null
+++ b/testcases/fail11.c
@@ -0,0 +1,4 @@
+int main() {
+ int a[2][3];
+ a[1] = 3;
+}
diff --git a/testcases/fail8.c b/testcases/fail8.c
new file mode 100644
index 0000000..21efd5f
--- /dev/null
+++ b/testcases/fail8.c
@@ -0,0 +1,5 @@
+struct {
+ int f();
+};
+int main() {
+}
diff --git a/testcases/localfunc.c b/testcases/localfunc.c
new file mode 100644
index 0000000..8012c6f
--- /dev/null
+++ b/testcases/localfunc.c
@@ -0,0 +1,4 @@
+int f(int a);
+int main() {
+ int f(int a, int b);
+}