From cdc6e2c50f96119bdc4c1205ff5901ca82ec8357 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Wed, 29 Jan 2020 18:17:43 -0600 Subject: add old compiler with ARM support --- gcc_arm/testsuite/gcc.c-torture/unsorted/xmtst.c | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 gcc_arm/testsuite/gcc.c-torture/unsorted/xmtst.c (limited to 'gcc_arm/testsuite/gcc.c-torture/unsorted/xmtst.c') diff --git a/gcc_arm/testsuite/gcc.c-torture/unsorted/xmtst.c b/gcc_arm/testsuite/gcc.c-torture/unsorted/xmtst.c new file mode 100755 index 0000000..ca78fca --- /dev/null +++ b/gcc_arm/testsuite/gcc.c-torture/unsorted/xmtst.c @@ -0,0 +1,26 @@ +p1 (int b, int *p, int a) +{ + p[0] = p[1]; + return p[0]; +} +p2 (int b, int *p, int a) +{ + p[0] = p[1]; + return p[0] == 0; +} +p3 (int b, int *p, int a) +{ + p[0] = p[1]; + a = p[0]; + if (a) + return 0; + return a; +} +p4 (int b, int *p, int a) +{ + a = p[1]; + p[0] = p[1]; + if (a) + return 0; + return a; +} -- cgit v1.2.3