summaryrefslogtreecommitdiffstats
path: root/tests/pureJava/TernaryAssignments.java
blob: 27f0be46c5328cb686dd7809021f1756b1b9ca50 (plain)
1
2
3
4
5
6
7
8
9
10
11
public class TernaryAssignments {
    public static void main(String[] args) {
        new TernaryAssignments().realMain(args);
    }
    public void realMain(String[] args) {
        boolean t = true;
        String v = v = v=v=v=v=v=v=v=v="s";
        String s = t ? s="s" : "unset";
        org.aspectj.testing.Tester.checkEqual(s, "s");
    }
}