mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-24 06:18:59 +08:00
e35b951f52
2000-02-12 Alexandre Petit-Bianco <apbianco@cygnus.com> * libjava.lang/inner_interface.out: New file. * libjava.lang/inner_interface.java: New file. * libjava.lang/final_int.out: New file. * libjava.lang/final_int.java: New file. * libjava.lang/final_static_and_friend.out: New file. * libjava.lang/final_static_and_friend.java: New file. From-SVN: r31944
23 lines
382 B
Java
23 lines
382 B
Java
// Class final_int
|
|
// Generated on Sat Feb 12 01:27:46 PST 2000
|
|
|
|
class final_int {
|
|
|
|
final int x = 30;
|
|
|
|
class foo {
|
|
int bar () {
|
|
return x;
|
|
}
|
|
}
|
|
void bar () {
|
|
int x = this.new foo ().bar ();
|
|
System.out.println (x);
|
|
}
|
|
public static void main (String[] arg)
|
|
{
|
|
System.out.println ("Testing class `final_int'...");
|
|
new final_int().bar ();
|
|
}
|
|
}
|