2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2024-12-28 19:25:56 +08:00
gcc/libjava/testsuite/libjava.compile/PR224.java
Bryce McKinlay 84d7ae3293 Test for PR gcj/224:
2000-05-08  Bryce McKinlay  <bryce@albatross.co.nz>

	Test for PR gcj/224:
	* libjava.compile/PR224.java: New file.
	* libjava.compile/PR224.xfail: New file.

From-SVN: r33762
2000-05-08 07:37:54 +01:00

17 lines
332 B
Java

// File PrivateInnerInterface.java
public class PR224 {
private interface Inter {}
}
class PrivateInnerInterface_Test extends PR224 {
void foo() {
// Implement the interface with an innerclass
Inter i = new Inter() { } ;
}
}
// This should fail to compile because Inter is private in the superclass