c++: Add new test [PR59978]
Fixed in r224162. That came without a test so adding this one. Previously, we issued a bogus "too few arguments to function" error. gcc/testsuite/ChangeLog: PR c++/59978 * g++.dg/cpp0x/vt-59978.C: New test.
This commit is contained in:
parent
b2984e5ada
commit
4358099049
1 changed files with 16 additions and 0 deletions
16
gcc/testsuite/g++.dg/cpp0x/vt-59978.C
Normal file
16
gcc/testsuite/g++.dg/cpp0x/vt-59978.C
Normal file
|
@ -0,0 +1,16 @@
|
|||
// PR c++/59978
|
||||
// { dg-do compile { target c++11 } }
|
||||
|
||||
static void testFunc(int i1, int i2) {
|
||||
(void)i1;
|
||||
(void)i2;
|
||||
}
|
||||
|
||||
template <int... Ints> void wrapper() {
|
||||
testFunc(Ints...);
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
wrapper<1, 2>();
|
||||
}
|
Loading…
Add table
Reference in a new issue