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.
This commit is contained in:
parent
209fc1e5f6
commit
1a4c47e10e
1 changed files with 14 additions and 0 deletions
14
gcc/testsuite/g++.dg/cpp0x/temp_default8.C
Normal file
14
gcc/testsuite/g++.dg/cpp0x/temp_default8.C
Normal file
|
@ -0,0 +1,14 @@
|
|||
// PR c++/67898
|
||||
// { dg-do compile { target c++11 } }
|
||||
|
||||
void f(int);
|
||||
void f(float);
|
||||
|
||||
template<class T, T F, T G, bool b = F == G> struct X { };
|
||||
|
||||
template<class T>
|
||||
void test() {
|
||||
X<void(T), f, f>();
|
||||
}
|
||||
|
||||
template void test<int>();
|
Loading…
Add table
Reference in a new issue