1 // Copyright (c) Microsoft. All rights reserved.
2 // Licensed under the MIT license. See LICENSE file in the project root for
3 // full license information.
4 
5 #include <windows.h>
6 #include "seh.h"
7 
8 #define faill()
9 #define startest()
10 #define finish()
11 
12 char test[] = "SEH0035.c";
13 
14 int main() {
15   ULONG Index1;
16   LONG Counter;
17 
18   Counter = 0;
19 
20   for (Index1 = 0; Index1 < 10; Index1 += 1) {
21     try {
22       try {
23         if ((Index1 & 0x1) == 0) {
24           /* add 1 to counter if INdex1 is odd */
25           Counter += 1;
26         }
27       }
28       finally {
29         /* always add 2 to counter */
30         Counter += 2;
31 #if defined(_MSC_VER) && !defined(__clang__)
32         continue;
33 #endif
34       }
35       endtry
36       /* never get here due to continue */
37       Counter += 4;
38     }
39     finally {
40       /* always add 5 to counter */
41       Counter += 5;
42     }
43     endtry
44     /* never get here due to continue */
45     Counter += 6;
46   }
47 
48   if (Counter != 75) {
49     printf("TEST 35 FAILED. Counter = %d\n\r", Counter);
50     return -1;
51   }
52 
53   return 0;
54 }
55