diff options
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/spec8.C')
-rwxr-xr-x | gcc_arm/testsuite/g++.old-deja/g++.pt/spec8.C | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/spec8.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/spec8.C new file mode 100755 index 0000000..966f69f --- /dev/null +++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/spec8.C @@ -0,0 +1,27 @@ +extern "C" void abort(); + +template <void* P> +void f(int j); + +template <int I> +void f(int j); + + +template <void* P> +void f(int j) +{ + abort(); +} + + +template <int I> +void f(int j) +{ +} + + +int main() +{ + f<3>(7); +} + |