Go to the source code of this file.
◆ TEST_EXCEPTION
#define TEST_EXCEPTION |
( |
| state | ) |
|
Value:{ \
num++; \
bool exception = false; \
try { \
} catch (...) { \
exception = true; \
} \
if (!exception) { \
printf(
"exception should arise for %s\n", #
state); \
err++; \
} \
}
Definition at line 3 of file bad_address.cpp.
3#define TEST_EXCEPTION(state) \
4{ \
5 num++; \
6 bool exception = false; \
7 try { \
8 state; \
9 } catch (...) { \
10 exception = true; \
11 } \
12 if (!exception) { \
13 printf("exception should arise for %s\n", #state); \
14 err++; \
15 } \
16}
◆ main()