Test case for PR libgcj/184:
* libjava.lang/pr184.java: New file. * libjava.lang/pr184.out: New file. From-SVN: r32796
This commit is contained in:
parent
f590cca174
commit
09b189bf69
3 changed files with 29 additions and 0 deletions
|
@ -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>
|
2000-03-27 Tom Tromey <tromey@cygnus.com>
|
||||||
|
|
||||||
* libjava.lang/test_long.out: New file.
|
* libjava.lang/test_long.out: New file.
|
||||||
|
|
22
libjava/testsuite/libjava.lang/pr184.java
Normal file
22
libjava/testsuite/libjava.lang/pr184.java
Normal file
|
@ -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;
|
||||||
|
};
|
||||||
|
}
|
1
libjava/testsuite/libjava.lang/pr184.out
Normal file
1
libjava/testsuite/libjava.lang/pr184.out
Normal file
|
@ -0,0 +1 @@
|
||||||
|
java.lang.NullPointerException
|
Loading…
Add table
Reference in a new issue