aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/CombinedLogic.java
blob: 94864928003b64637dfece1aa1875f31df8927b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import org.aspectj.testing.Tester;

/**
 * Test for: PR #99
 */

public class CombinedLogic {
    public static void main(String[] args) { test(); }

    public static void test() {
	Object foo = null;
	int baz = 1;
	int foobaz = baz;

	if ((null == foo) && (baz != foobaz)) {
	    Tester.check(false, "better not");
	} else {
	    Tester.check(true, "it better be true");
	}
    }
}