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:
committed by
Bryce McKinlay
parent
f590cca174
commit
09b189bf69
@@ -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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user