This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
New gcc testsuite case
- To: gcc-patches at gcc dot gnu dot org
- Subject: New gcc testsuite case
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Thu, 29 Jun 2000 11:27:14 -0700
Hi Guys,
I would like approval to add the following gcc compile testcase.
This test triggers a bug in the current ARM backend (for which a
patch is being reviewed).
Cheers
Nick
2000-06-29 Nick Clifton <nickc@cygnus.com>
* gcc.c-torture/compile/20000629-1.c: New test.
Index: gcc/testsuite/gcc.c-torture/compile/20000629-1.c
===================================================================
RCS file: 20000629-1.c
diff -N 20000629-1.c
*** /dev/null Tue May 5 13:32:27 1998
--- 20000629-1.c Thu Jun 29 11:27:03 2000
***************
*** 0 ****
--- 1,16 ----
+ struct a
+ {
+ struct a * x;
+ };
+
+ void
+ foo (struct a * b)
+ {
+ int i;
+
+ for (i = 0; i < 1000; i++)
+ {
+ b->x = b;
+ b++;
+ }
+ }