diff options
author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-29 02:08:59 +0000 |
---|---|---|
committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-29 02:08:59 +0000 |
commit | d96a8efbc9740ace8267f56cf029394829cb7ecd (patch) | |
tree | c03247dc845b9d048f70af3a5d01766fc710c82e /libjava/testsuite | |
parent | f220c8f0112a62bdb70bec599077294e6e34f92e (diff) | |
download | ppe42-gcc-d96a8efbc9740ace8267f56cf029394829cb7ecd.tar.gz ppe42-gcc-d96a8efbc9740ace8267f56cf029394829cb7ecd.zip |
Test case for PR libgcj/184:
* libjava.lang/pr184.java: New file.
* libjava.lang/pr184.out: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32796 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite')
-rw-r--r-- | libjava/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | libjava/testsuite/libjava.lang/pr184.java | 22 | ||||
-rw-r--r-- | libjava/testsuite/libjava.lang/pr184.out | 1 |
3 files changed, 29 insertions, 0 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index f29a3e6883c..eeae07fe35d 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2000-03-28 Bryce McKinlay <bryce@albatross.co.nz> + + Test case for PR libgcj/184: + * libjava.lang/pr184.java: New file. + * libjava.lang/pr184.out: New file. + 2000-03-27 Tom Tromey <tromey@cygnus.com> * libjava.lang/test_long.out: New file. diff --git a/libjava/testsuite/libjava.lang/pr184.java b/libjava/testsuite/libjava.lang/pr184.java new file mode 100644 index 00000000000..42175b38e9d --- /dev/null +++ b/libjava/testsuite/libjava.lang/pr184.java @@ -0,0 +1,22 @@ +public class pr184 +{ + public static void main(String[] args) + { + pr184 n = null; + try + { + n.foo(); + } + catch (NullPointerException x) + { + System.out.println(x); + } + } + + int x = 2; + + final int foo() + { + return x; + }; +} diff --git a/libjava/testsuite/libjava.lang/pr184.out b/libjava/testsuite/libjava.lang/pr184.out new file mode 100644 index 00000000000..7a72d865c98 --- /dev/null +++ b/libjava/testsuite/libjava.lang/pr184.out @@ -0,0 +1 @@ +java.lang.NullPointerException |