aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pureJava/CastingFoldedValues.java
blob: ad77586b3a37d904699a4f831f9ccc22f75228a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import org.aspectj.testing.Tester;

public class CastingFoldedValues {
    static final char i = 'c';

    static boolean foundChar = false;

    static void foo(char c) { foundChar = true; }
    static void foo(int c) {  }

    public static void main(String[] args) {
	foo(i);
	Tester.check(foundChar, "forgot to cast folded char down to char type");
    }
}