Commit | Line | Data |
---|---|---|
cfbf0e3c RÁE |
1 | #include <iostream> |
2 | #include <cstdlib> | |
3 | ||
4 | void | |
5 | foo() | |
6 | { | |
7 | } | |
8 | ||
698400bf CC |
9 | template<typename C> |
10 | void | |
11 | bar(C*) | |
12 | { | |
13 | } | |
14 | ||
15 | template | |
16 | void | |
17 | bar<int>(int*); | |
18 | ||
cfbf0e3c RÁE |
19 | int |
20 | main() | |
21 | { | |
22 | try | |
23 | { | |
24 | throw(1); | |
25 | } | |
26 | catch(int) | |
27 | { | |
28 | std::cout << "caught" << std::endl; | |
29 | exit(0); | |
30 | } | |
31 | std::cout << "failed" << std::endl; | |
32 | exit(1); | |
33 | } |