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 tests


A few new tests extracted from failures when building FC2.  I have a 
fix for 20040317-2.c that I'll be checking in shortly.  20040317-3.c has
already been fixed by Richard/Diego.  20040317-1.c is currently failing.

        * gcc.c-torture/compile/20040317-1.c: New test.
        * gcc.c-torture/compile/20040317-2.c: New test.
        * gcc.c-torture/compile/20040317-3.c: New test.
 


Index: 20040317-1.c
===================================================================
RCS file: 20040317-1.c
diff -N 20040317-1.c
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- 20040317-1.c	17 Mar 2004 21:11:59 -0000
***************
*** 0 ****
--- 1,4 ----
+ int String2Array(int len, char strarr[][len])
+ {
+   strarr[0];
+ }
Index: 20040317-2.c
===================================================================
RCS file: 20040317-2.c
diff -N 20040317-2.c
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- 20040317-2.c	17 Mar 2004 21:11:59 -0000
***************
*** 0 ****
--- 1,25 ----
+ typedef struct _ScaleRec *ScaleWidget;
+ typedef struct
+ {
+   short *x;
+   unsigned short *width;
+ } Table;
+ typedef struct
+ {
+   Table table;
+ } ScalePart;
+ typedef struct _ScaleRec
+ {
+   ScalePart scale;
+ } ScaleRec;
+ static int
+ FindPixel (ScaleWidget sw, short x, short y,
+        short * img_x, short * img_y, unsigned long * img_pixel)
+ {
+   if (sw->scale.table.x[(int) *img_x] + 
+       (short) sw->scale.table.width[(int) *img_x] < x)
+     {
+       ++*img_x;
+       return FindPixel (sw, x, y, img_x, img_y, img_pixel);
+     }
+ }
Index: 20040317-3.c
===================================================================
RCS file: 20040317-3.c
diff -N 20040317-3.c
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- 20040317-3.c	17 Mar 2004 21:11:59 -0000
***************
*** 0 ****
--- 1,11 ----
+ I_wacom ()
+ {
+   char buffer[50], *p;
+   int RequestData (char *cmd)
+   {
+     p = buffer;
+     foo (buffer);
+   }
+   RequestData (0);
+ }
+ 







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