gcc/testsuite/g++.dg/compat/eh/template1_main.C
raw| 1 | // Test whether exception specifier dependent on template parameter |
| 2 | // is accepted during template decl processing. |
| 3 | |
| 4 | // Split into pieces for binary compatibility testing October 2002 |
| 5 | |
| 6 | // Explicit { dg-require-effective-target exceptions_enabled } so that dependent tests don't turn UNRESOLVED for '-fno-exceptions'. |
| 7 | |
| 8 | extern void template1_x (void); |
| 9 | |
| 10 | int |
| 11 | main () |
| 12 | { |
| 13 | template1_x (); |
| 14 | } |