From e012a2dc85a00027ca5f2fc4ee5d56d43ee74327 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 30 Jul 2008 14:39:42 +0000 Subject: [PATCH] more pointer arith tests [r20811] --- parsetest/shouldfail/pointerarith3.c | 5 +++++ parsetest/shouldfail/pointerarith4.c | 5 +++++ parsetest/shouldfail/pointerarith5.c | 5 +++++ 3 files changed, 15 insertions(+) create mode 100644 parsetest/shouldfail/pointerarith3.c create mode 100644 parsetest/shouldfail/pointerarith4.c create mode 100644 parsetest/shouldfail/pointerarith5.c 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; +} -- 2.20.1