aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1612/pr315398/Code2.java
blob: d1893158f7b30abde13ca2ba71c294726a712790 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
public aspect Code2 {

  static int[] a = new int[]{1,2,3};

  static void f(){
    new Test(a[0]++);
}

after() returning(Object obj) : call(Test.new(..)) {
}

  public static void main(String []argv) {
   f();
 }
}

class Test {
  Test(int i) {}
}