diff options
author | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-01-16 21:01:25 +0000 |
---|---|---|
committer | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-01-16 21:01:25 +0000 |
commit | ac538d8a7680ccb36f61ac2ef2c6732347ea63f8 (patch) | |
tree | d86d77b276bfcf00c2fc9379eb3a8f93bad40c07 /libjava | |
parent | 054b730a98f117791aca8994d10aa8dd6eec9703 (diff) | |
download | gcc-ac538d8a7680ccb36f61ac2ef2c6732347ea63f8.tar.gz |
*** empty log message ***
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31448 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/testsuite/ChangeLog | 17 | ||||
-rw-r--r-- | libjava/testsuite/libjava.lang/pr100.java | 13 | ||||
-rw-r--r-- | libjava/testsuite/libjava.lang/pr100.xpo | 2 | ||||
-rw-r--r-- | libjava/testsuite/libjava.lang/pr133.java | 34 | ||||
-rw-r--r-- | libjava/testsuite/libjava.lang/pr133.out | 3 |
5 files changed, 69 insertions, 0 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index 96ba6282a31..54bbb90f101 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -1,5 +1,22 @@ 2000-01-16 Anthony Green <green@cygnus.com> + * libjava.lang/pr133.out: New file. + * libjava.lang/pr133.java: New file. + + * libjava.lang/pr100.xpo: New file. + * libjava.lang/pr100.java: New file. + +2000-01-16 Anthony Green <green@cygnus.com> + + * libjava.lang/pr93.xpo: New file. + * libjava.lang/pr93.java: New file. + +2000-01-16 Anthony Green <green@cygnus.com> + + * libjava.lang/lang.exp: Handle regexp matches correctly. + +2000-01-16 Anthony Green <green@cygnus.com> + * libjava.lang/pr83.out: New file. * libjava.lang/pr83.java: New file. diff --git a/libjava/testsuite/libjava.lang/pr100.java b/libjava/testsuite/libjava.lang/pr100.java new file mode 100644 index 00000000000..a9f3685cf4a --- /dev/null +++ b/libjava/testsuite/libjava.lang/pr100.java @@ -0,0 +1,13 @@ +// PR 100 + +// Second call to hashcode causes SEGV when dynamically linking. + +public class pr100 +{ + public static void main(String[] args) { + pr100 ht = new pr100(); + + System.err.println(ht.hashCode()); + System.err.println(ht.getClass().hashCode()); + } +} diff --git a/libjava/testsuite/libjava.lang/pr100.xpo b/libjava/testsuite/libjava.lang/pr100.xpo new file mode 100644 index 00000000000..d87ea2e8889 --- /dev/null +++ b/libjava/testsuite/libjava.lang/pr100.xpo @@ -0,0 +1,2 @@ +[0-9]+ +[0-9]+ diff --git a/libjava/testsuite/libjava.lang/pr133.java b/libjava/testsuite/libjava.lang/pr133.java new file mode 100644 index 00000000000..42009f4c851 --- /dev/null +++ b/libjava/testsuite/libjava.lang/pr133.java @@ -0,0 +1,34 @@ +// PR 133 + +// System.exit(0) appears to hang the program. + +public class pr133 { + public static void main(String argv[]) + { + String name; + + if (argv.length == 0) { + name = "Rocket J. Squirrel"; + } else { + name = argv[0]; + } + + new pr133(name).identifySelf(); + System.out.println("goodbye"); + + System.exit(0); + } + + public pr133 (String name) + { + v_name = name; + } + + public void identifySelf() + { + System.out.println("This is a pr133 instance named " + v_name); + System.out.println("Leaving identifySelf()..."); + } + + private String v_name; +} diff --git a/libjava/testsuite/libjava.lang/pr133.out b/libjava/testsuite/libjava.lang/pr133.out new file mode 100644 index 00000000000..52098d8075a --- /dev/null +++ b/libjava/testsuite/libjava.lang/pr133.out @@ -0,0 +1,3 @@ +This is a pr133 instance named Rocket J. Squirrel +Leaving identifySelf()... +goodbye |