From 7c05ee2116d3726bbfd3e561a8f7df5a693cd87d Mon Sep 17 00:00:00 2001 From: Andreas Zwinkau Date: Fri, 31 Oct 2008 14:54:56 +0000 Subject: [PATCH] Preserving a test case, which would brake with pbqp transformer on ARM and postinc rules [r23329] --- ir/be/test/postinc.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ir/be/test/postinc.c diff --git a/ir/be/test/postinc.c b/ir/be/test/postinc.c new file mode 100644 index 000000000..a237c226d --- /dev/null +++ b/ir/be/test/postinc.c @@ -0,0 +1,12 @@ +static void postinc_break(int *a, int *b) { + // assumes sizeof(int) == sizeof(int*) + *a = b+1; + *b = a+1; +} + +int main(void) { + int a, b; + postinc_break(&a, &b); + printf("%d\n", a-b); + return 0; +} -- 2.20.1