blob: 2f94d99640382851e1d81857690187dd16a26a44 [file] [log] [blame]
Chris Lattnerb895fb02003-11-29 09:10:50 +00001
2void doesntThrow() throw();
3struct F {
4 ~F() { doesntThrow(); }
5};
6
7void atest() {
8 F A;
9lab:
10 F B;
11 goto lab;
12}
13
14void test(int val) {
15label: {
16 F A;
17 F B;
18 if (val == 0) goto label;
19 if (val == 1) goto label;
20}
21}
22
23void test3(int val) {
24label: {
25 F A;
26 F B;
27 if (val == 0) { doesntThrow(); goto label; }
28 if (val == 1) { doesntThrow(); goto label; }
29}
30}
31
32void test4(int val) {
33label: {
34 F A;
35 F B;
36 if (val == 0) { F C; goto label; }
37 if (val == 1) { F D; goto label; }
38}
39}