diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/explicit42.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/explicit42.C | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/explicit42.C b/gcc/testsuite/g++.old-deja/g++.pt/explicit42.C new file mode 100644 index 000000000..770fbbeea --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/explicit42.C @@ -0,0 +1,18 @@ +// { dg-do run } +extern "C" void abort(void); + +template <int I> +void f(int i) +{ +} + +template <void*> +void f(int i) +{ + abort(); +} + +int main() +{ + f<0>(3); +} |