aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile/PR16675.java
blob: 11e6d4bb6bc4b391ce0680a57266a5927a857512 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
public class PR16675 {
    public PR16675(Object obj) { }

    public void someTestMethod() {
        // gcj crashed compiling this, as `null' had type `void*'.
        new PR16675(null) { };
    }

    public void someTestMethod2() {
        new PR16675((Object) null) { };
    }

}