aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs170/language/StringSwitch.java
blob: 140d3b198eae8902bcc93087a5ccf5d1e8ecdd13 (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
25
26
27
28
29
30
31
32
33
public class StringSwitch {
  public static void main(String []argv) {
  }
}

aspect Foo {
  before(): execution(* *(..)) {
String s = "abc";
switch(s) {
 case "quux":
   foo();
    // fall-through

  case "foo":
  case "bar":
 foo();
    break;

  case "baz":
 foo();
    // fall-through

  default:
 foo();
    break;
}

  }
  

  public void foo() {}

}