summaryrefslogtreecommitdiffstats
path: root/tests/new/paramWidening/Driver.java
blob: bacd6bde44812933dde1d306674a92306b196859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import org.aspectj.testing.Tester;

// PR#195

public class Driver {
    private static java.util.Vector v = new java.util.Vector();
    
    public static void main(String[] args) { test(); }

    public static void test() {
        long l = foo(42);
        
        Tester.check(l == 42, "foo(42) == 42"); 
    }
    
    private static float foo(float f) {
        return f;
    }

    private static long foo(long l) {
        return l;
    }
}