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 char test[] = "seh0053.c"; 9 int perfect; 10 11 #define BLUE 0 12 #define RED 1 13 14 int main() { 15 LONG Counter; 16 ULONG Index2 = RED; 17 18 Counter = 0; 19 20 try { 21 switch (Index2) { 22 case BLUE: 23 break; 24 25 case RED: 26 Counter += 3; 27 leave; 28 } 29 30 Counter += 100; 31 } 32 finally { 33 if (abnormal_termination() == FALSE) { 34 Counter += 5; 35 } 36 } 37 endtry 38 39 if (Counter != 8) { 40 printf("TEST 53 FAILED, Counter = %d\n", Counter); 41 return -1; 42 } 43 44 return 0; 45 } 46