This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

New gcc testsuite case


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++;
+     }
+ }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]