Initial revision

From-SVN: r26263
This commit is contained in:
Tom Tromey 1999-04-07 14:42:40 +00:00
parent 140fa895c6
commit ee9dd3721b
370 changed files with 173494 additions and 0 deletions

View file

@ -0,0 +1,15 @@
// Simple compiler test.
public class Case
{
public static int foo (int i, support.Case x)
{
switch (i)
{
case x.A:
return 1;
default:
return 0;
}
}
}

View file

@ -0,0 +1,8 @@
// Simple compiler test.
public class Semi
{
Semi () { };
}

View file

@ -0,0 +1,7 @@
// Simple compiler test.
public interface Statics {
public static final int OwnerGrabButtonMask = 1<<24;
}

View file

@ -0,0 +1,14 @@
// Simple compiler test.
public class Twice
{
Twice (boolean q)
{
if (q)
for (int p = 0; p < 10; p++);
else
for (int p = 0; p < 10; p++);
}
}

View file

@ -0,0 +1,12 @@
// Simple compiler test.
public final class Where implements support.Waldo
{
int WhereIsWaldo ()
{
// The compiler should find 'here' in support.Waldo.
return here;
}
}

View file

@ -0,0 +1,5 @@
public class euc_comment1 {
public static void main(String[] args) {
/* ÆþÎÏ */
}
}

View file

@ -0,0 +1,5 @@
public class euc_comment2 {
public static void main(String[] args) {
// ÆþÎÏ
}
}

View file

@ -0,0 +1,5 @@
public class euc_comment3 {
public static void main(String[] args) {
// ÆþÎÏ
}
}

View file

@ -0,0 +1,9 @@
// This generates code that `gcj -C' doesn't like.
public class perc
{
public static void main (String[] args)
{
System.out.println (27.0 % 10.0);
}
}

View file

@ -0,0 +1,5 @@
public class sjis_comment1 {
public static void main(String[] args) {
/* “ü—Í */
}
}

View file

@ -0,0 +1,5 @@
public class sjis_comment2 {
public static void main(String[] args) {
// üÍ
}
}

View file

@ -0,0 +1,5 @@
public class sjis_comment3 {
public static void main(String[] args) {
// üÍ
}
}

View file

@ -0,0 +1,6 @@
package support;
public class Case
{
public static final int A = 9;
}

View file

@ -0,0 +1,7 @@
package support;
public interface Waldo {
public static final int here = 9;
}

View file

@ -0,0 +1,10 @@
global srcdir subdir
catch "glob -nocomplain ${srcdir}/${subdir}/*.java" srcfiles
verbose "srcfiles are $srcfiles"
set prefix ""
foreach x $srcfiles {
test_libjava $options "$x" "" "" "" "no-exec"
test_libjava $options "$x" "-O" "" "" "no-exec"
}