blob: bb6d16eaec56693748f02ac1e225e7f7fe6d20ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <iostream>
int main(void)
{
const int x = 0x0;
try
{
if (x == 0)
throw "throwing a string";
}
catch (const char *str)
{
std::cerr << str;
}
return 0;
}
|