diff options
author | Bryce McKinlay <bryce@albatross.co.nz> | 2000-03-29 02:08:59 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2000-03-29 03:08:59 +0100 |
commit | 09b189bf69f5ac863f00890d2d83619aed76429f (patch) | |
tree | c03247dc845b9d048f70af3a5d01766fc710c82e /libjava/testsuite | |
parent | f590cca17451068b993f1202bf3167a36d131fdb (diff) | |
download | gcc-09b189bf69f5ac863f00890d2d83619aed76429f.zip gcc-09b189bf69f5ac863f00890d2d83619aed76429f.tar.gz gcc-09b189bf69f5ac863f00890d2d83619aed76429f.tar.bz2 |
Test case for PR libgcj/184:
* libjava.lang/pr184.java: New file.
* libjava.lang/pr184.out: New file.
From-SVN: r32796
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 f29a3e6..eeae07f 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 0000000..42175b3 --- /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 0000000..7a72d86 --- /dev/null +++ b/libjava/testsuite/libjava.lang/pr184.out @@ -0,0 +1 @@ +java.lang.NullPointerException |