mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-26 12:23:59 +08:00
Shazam.java: New file.
* libjava.lang/Shazam.java: New file. libjava.lang/Shazam.out: New file. From-SVN: r27022
This commit is contained in:
parent
777004694d
commit
7ec6a04ef8
@ -1,3 +1,8 @@
|
||||
1999-05-24 Anthony Green <green@cygnus.com>
|
||||
|
||||
* libjava.lang/Shazam.java: New file.
|
||||
libjava.lang/Shazam.out: New file.
|
||||
|
||||
1999-05-12 Andrew Haley <aph@cygnus.com>
|
||||
|
||||
* libjava.lang/Invoke_2.java: New file.
|
||||
|
18
libjava/testsuite/libjava.lang/Shazam.java
Normal file
18
libjava/testsuite/libjava.lang/Shazam.java
Normal file
@ -0,0 +1,18 @@
|
||||
import java.io.*;
|
||||
|
||||
public class Shazam {
|
||||
|
||||
private static String shazam ()
|
||||
{
|
||||
try {
|
||||
return "shazam";
|
||||
} finally {
|
||||
System.out.println ("The next line should say \"shazam\"");
|
||||
}
|
||||
}
|
||||
|
||||
public static void main (String[] args)
|
||||
{
|
||||
System.out.println (shazam ());
|
||||
}
|
||||
}
|
2
libjava/testsuite/libjava.lang/Shazam.out
Normal file
2
libjava/testsuite/libjava.lang/Shazam.out
Normal file
@ -0,0 +1,2 @@
|
||||
The next line should say "shazam"
|
||||
shazam
|
Loading…
Reference in New Issue
Block a user