New testcase

Franz Sirl Franz.Sirl-kernel@lauterbach.com
Wed Apr 1 16:53:00 GMT 1998


Hi,

this is my first testcase and I hope I did it correct. It's Geoff Keating's
test for correct case folding. It FAIL's on powerpc-unknown-linux-gnu and
probably some other platforms.

Bye,
Franz.



Index: special.exp
===================================================================
RCS file:
/egcs/carton/cvsfiles/egcs/gcc/testsuite/gcc.c-torture/special/special.exp,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 special.exp
--- special.exp	1997/08/19 07:36:12	1.1.1.1
+++ special.exp	1998/04/01 20:45:01
@@ -34,6 +34,9 @@

 ################## ADD NEXT CASE HERE (NOT AT THE END) ##################

+# switch-1
+c-torture switch-1.c "-fpic"
+
 # 921210-1
 set lines [gcc_target_compile $srcdir/$subdir/921210-1.c "" preprocess ""]
 set lines [split [prune_warnings [prune_gcc_output $lines]] "\n"]
Index: switch-1.c
===================================================================
RCS file:
/egcs/carton/cvsfiles/egcs/gcc/testsuite/gcc.c-torture/special/switch-1.c,v
--- /dev/null	Tue Jan  1 05:00:00 1980
+++ switch-1.c	Sun Mar 22 18:03:03 1998
@@ -0,0 +1,15 @@
+void f (char *s)
+{
+  for (;;)
+    {
+      int t = 6;
+      switch (t)
+	{
+	case 2:
+	  *s = '2';
+	case 6: case 4: case 3: case 1:
+	  break;
+	}
+    }
+}
+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: %fra8.patch
Type: application/octet-stream
Size: 120 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/19980401/8de20d23/attachment.obj>


More information about the Gcc mailing list