ReactOS 0.4.16-dev-122-g325d74c
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
9void foo(int arg) { bar(arg); }
10
11int filter() { return bar(3); }
12
13void moo1(int arg) {
14 __try { bar(arg); }
15 __except(filter()) { bar(1); }
16
17 bar(0);
18}
19
20void moo2(int arg) {
21 __try { bar(arg); }
22 __finally { bar(2); }
23
24 bar(0);
25}
void bar()
Definition: ehthrow.cxx:142
void moo2(int arg)
Definition: seh_noreturn.c:20
int filter()
Definition: seh_noreturn.c:11
void moo1(int arg)
Definition: seh_noreturn.c:13
__declspec(noreturn)
Definition: seh_noreturn.c:7