1package com.google.googlejavaformat.java.test;
2
3/** Tests for UnionTypes. */
4class U {
5  void f() {
6    class Exception0 extends Exception {}
7    class Exception1 extends Exception {}
8    class Exception2 extends Exception {}
9    class Exception3 extends Exception {}
10    class Exception4 extends Exception {}
11    class Exception5 extends Exception {}
12    class Exception6 extends Exception {}
13    class Exception7 extends Exception {}
14    class Exception8 extends Exception {}
15    class Exception9 extends Exception {}
16    try {
17      char c = '\123';
18      switch (c) {
19        case '0':
20          throw new Exception0();
21        case '1':
22          throw new Exception1();
23        case '2':
24          throw new Exception2();
25        case '3':
26          throw new Exception3();
27        case '4':
28          throw new Exception4();
29        case '5':
30          throw new Exception5();
31        case '6':
32          throw new Exception6();
33        case '7':
34          throw new Exception7();
35        case '8':
36          throw new Exception8();
37        case '9':
38        default:
39          throw new Exception9();
40      }
41    } catch (Exception0
42        | Exception1
43        | Exception2
44        | Exception3
45        | Exception4
46        | Exception5
47        | Exception6
48        | Exception7
49        | Exception8
50        | Exception9 e) {
51    }
52  }
53}
54