From 1a4c47e10e8ba06f04de2d41a040ba1494843a01 Mon Sep 17 00:00:00 2001 From: Patrick Palka Date: Tue, 30 Jan 2024 12:30:32 -0500 Subject: [PATCH] c++: add original testcase [PR67898] The original testcase from this PR (fixed by r14-8291) seems rather different from the others, so let's add it to the testsuite. PR c++/67898 gcc/testsuite/ChangeLog: * g++.dg/cpp0x/temp_default8.C: New test. --- gcc/testsuite/g++.dg/cpp0x/temp_default8.C | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/temp_default8.C diff --git a/gcc/testsuite/g++.dg/cpp0x/temp_default8.C b/gcc/testsuite/g++.dg/cpp0x/temp_default8.C new file mode 100644 index 00000000000..505c67d7c41 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/temp_default8.C @@ -0,0 +1,14 @@ +// PR c++/67898 +// { dg-do compile { target c++11 } } + +void f(int); +void f(float); + +template struct X { }; + +template +void test() { + X(); +} + +template void test();