Initial revision
From-SVN: r26263
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// Simple compiler test.
|
||||
|
||||
public class Semi
|
||||
{
|
||||
Semi () { };
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
// Simple compiler test.
|
||||
|
||||
public interface Statics {
|
||||
|
||||
public static final int OwnerGrabButtonMask = 1<<24;
|
||||
|
||||
}
|
||||
@@ -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++);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
public class euc_comment1 {
|
||||
public static void main(String[] args) {
|
||||
/* ÆþÎÏ */
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
public class euc_comment2 {
|
||||
public static void main(String[] args) {
|
||||
// ÆþÎÏ
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
public class euc_comment3 {
|
||||
public static void main(String[] args) {
|
||||
// ÆþÎÏ
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
public class sjis_comment1 {
|
||||
public static void main(String[] args) {
|
||||
/* “ü—Í */
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
public class sjis_comment2 {
|
||||
public static void main(String[] args) {
|
||||
// “ü—Í
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
public class sjis_comment3 {
|
||||
public static void main(String[] args) {
|
||||
// “ü—Í
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package support;
|
||||
|
||||
public class Case
|
||||
{
|
||||
public static final int A = 9;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package support;
|
||||
|
||||
public interface Waldo {
|
||||
|
||||
public static final int here = 9;
|
||||
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user