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.wendy/gnu21.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 gcc_arm/testsuite/gcc.wendy/gnu21.c (limited to 'gcc_arm/testsuite/gcc.wendy/gnu21.c') diff --git a/gcc_arm/testsuite/gcc.wendy/gnu21.c b/gcc_arm/testsuite/gcc.wendy/gnu21.c new file mode 100755 index 0000000..7a3067b --- /dev/null +++ b/gcc_arm/testsuite/gcc.wendy/gnu21.c @@ -0,0 +1,30 @@ +/* +Message-Id: <8712292244.AA24155@prep.ai.mit.edu> +Date: Mon, 28 Dec 87 21:05:20 PST +From: Greg Satz +To: bug-gcc@prep.ai.mit.edu +Subject: Error handling bug? + +The following program causes cc1 to make a core file. Since it was +caused by a syntax error, I didn't spend that much time tracking it +down. I was able to reduce the example to this small result. Could +someone check to see if this bug exists in the Vax and Sun versions as +well and let me know? Thanks! +*/ + +int global; +main() +{ + int ch; + + if (global) { + printf("here"); + } else { + if (((ch & 0x7f) == 0)) && (ch & 1)) { /* syntax error here */ + if (!ch) + return(0); + ch = 0; + } + } +} + -- cgit v1.2.3