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]
Other format: [Raw text]

[tree-ssa] New testcases


Testcases for two bugs I've been working on.  The fix for the first is
still in testing.  The fix for the second testcase has been installed
(the second test is from bug 14413).


Index: 20040303-1.c
===================================================================
RCS file: 20040303-1.c
diff -N 20040303-1.c
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- 20040303-1.c	4 Mar 2004 05:08:42 -0000
***************
*** 0 ****
--- 1,16 ----
+ typedef struct input {
+         struct input *next;
+ } input_t;
+ static input_t *inputs = (input_t *)((void *)0);
+ void
+ RemoveInput(unsigned long id)
+ {
+  input_t *ip;
+  input_t *prev;
+  while (1)
+   if (ip == (input_t *)id)
+    break;
+  if (ip == (input_t *)((void *)0))
+   return;
+   prev->next = ip->next;
+ }
Index: 20040303-2.c
===================================================================
RCS file: 20040303-2.c
diff -N 20040303-2.c
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- 20040303-2.c	4 Mar 2004 05:08:42 -0000
***************
*** 0 ****
--- 1,23 ----
+ void abort(void);
+ int x, y;
+ void init_xy(void);
+ void
+ test4(void)
+ {
+   init_xy();
+   _Bool iftemp0;
+   int x1 = x;
+   _Bool iftemp1;
+   x1++;
+   if (x1 != 3)
+     {
+       iftemp1 = 1;
+       goto endfirstif;
+     }
+   iftemp1 = 0;
+   endfirstif:
+   iftemp0 = iftemp1;
+   if (iftemp0)
+     abort();
+ }
+ 



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