From: Matthias Braun Date: Wed, 30 Jul 2008 14:39:42 +0000 (+0000) Subject: more pointer arith tests X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=e012a2dc85a00027ca5f2fc4ee5d56d43ee74327;p=cparser more pointer arith tests [r20811] --- diff --git a/parsetest/shouldfail/pointerarith3.c b/parsetest/shouldfail/pointerarith3.c new file mode 100644 index 0000000..3343a59 --- /dev/null +++ b/parsetest/shouldfail/pointerarith3.c @@ -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 index 0000000..ff39d3a --- /dev/null +++ b/parsetest/shouldfail/pointerarith4.c @@ -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 index 0000000..7b57cd6 --- /dev/null +++ b/parsetest/shouldfail/pointerarith5.c @@ -0,0 +1,5 @@ +int main(void) { + void *a = 0; + a++; + return 0; +}