This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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]

Patch: test case for java/8866


FYI, I just checked in this test case for java/8866

AG


Index: libjava/testsuite/ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/testsuite/ChangeLog,v
retrieving revision 1.239
diff -c -r1.239 ChangeLog
*** libjava/testsuite/ChangeLog	5 Dec 2002 08:06:09 -0000	1.239
--- libjava/testsuite/ChangeLog	7 Dec 2002 23:55:31 -0000
***************
*** 1,3 ****
--- 1,8 ----
+ 2002-12-07  Anthony Green  <green@redhat.com>
+ 
+ 	* libjava.lang/SwitchTest.java: New file.
+ 	* libjava.lang/SwitchTest.out: New file.
+ 
  2002-12-05  Tom Tromey  <tromey@redhat.com>
  
  	* libjava.lang/override.java: New file.
Index: libjava/testsuite/libjava.lang/SwitchTest.java
===================================================================
RCS file: libjava/testsuite/libjava.lang/SwitchTest.java
diff -N libjava/testsuite/libjava.lang/SwitchTest.java
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- libjava/testsuite/libjava.lang/SwitchTest.java	7 Dec 2002 23:55:31 -0000
***************
*** 0 ****
--- 1,22 ----
+ public class SwitchTest 
+ {
+   public static void main (String args[])
+     {
+       String attTypeString = "";
+ 
+       switch (args.length) {
+       case 1:
+           attTypeString = "string";
+       case 4:
+           attTypeString = "ID";;
+       case 5:
+           attTypeString = "IDREF";;
+       case 6:
+           attTypeString = "NMTOKEN";;
+       case 7:
+           attTypeString = "NOTATION";;
+       default:
+           ;
+       }
+     }
+ }
Index: libjava/testsuite/libjava.lang/SwitchTest.out
===================================================================
RCS file: libjava/testsuite/libjava.lang/SwitchTest.out
diff -N libjava/testsuite/libjava.lang/SwitchTest.out




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