URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic41.C] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// A function parameter pack is only deduced if it's at the end
// { dg-options "-std=gnu++0x" }
template<typename... Args>
void f(const Args&... args, int oops);
int main()
{
f<>(1);
f(1);
f<int>(1,2);
f(1,2); // { dg-error "no match" }
}
// { dg-prune-output "note" }
Go to most recent revision | Compare with Previous | Blame | View Log