ReactOS  0.4.15-dev-5112-g22d8c0f
seh_noreturn.c
Go to the documentation of this file.
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 // SEH + no-return (explicit)
6 
7 __declspec(noreturn) int bar(int);
8 
9 void foo(int arg) { bar(arg); }
10 
11 int filter() { return bar(3); }
12 
13 void moo1(int arg) {
14  __try { bar(arg); }
15  __except(filter()) { bar(1); }
16 
17  bar(0);
18 }
19 
20 void moo2(int arg) {
21  __try { bar(arg); }
22  __finally { bar(2); }
23 
24  bar(0);
25 }
int filter()
Definition: seh_noreturn.c:11
__declspec(noreturn)
Definition: seh_noreturn.c:7
void moo2(int arg)
Definition: seh_noreturn.c:20
static WCHAR foo[]
Definition: stringtable.c:56
void bar()
Definition: ehthrow.cxx:142
void moo1(int arg)
Definition: seh_noreturn.c:13