more pointer arith tests
authorMatthias Braun <matze@braunis.de>
Wed, 30 Jul 2008 14:39:42 +0000 (14:39 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 30 Jul 2008 14:39:42 +0000 (14:39 +0000)
[r20811]

parsetest/shouldfail/pointerarith3.c [new file with mode: 0644]
parsetest/shouldfail/pointerarith4.c [new file with mode: 0644]
parsetest/shouldfail/pointerarith5.c [new file with mode: 0644]

diff --git a/parsetest/shouldfail/pointerarith3.c b/parsetest/shouldfail/pointerarith3.c
new file mode 100644 (file)
index 0000000..3343a59
--- /dev/null
@@ -0,0 +1,5 @@
+int main(void) {
+       void *a = 0;
+       a = a + 5;
+       return 0;
+}
diff --git a/parsetest/shouldfail/pointerarith4.c b/parsetest/shouldfail/pointerarith4.c
new file mode 100644 (file)
index 0000000..ff39d3a
--- /dev/null
@@ -0,0 +1,5 @@
+int main(void) {
+       void *a = 0;
+       a = a - 5;
+       return 0;
+}
diff --git a/parsetest/shouldfail/pointerarith5.c b/parsetest/shouldfail/pointerarith5.c
new file mode 100644 (file)
index 0000000..7b57cd6
--- /dev/null
@@ -0,0 +1,5 @@
+int main(void) {
+       void *a = 0;
+       a++;
+       return 0;
+}