URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic106.C] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// Origin: PR c++/47326
// { dg-options "-std=c++0x" }
// { dg-do compile }
template <int _N>
struct A
{
typedef int value_type;
};
template <typename... _ARGS>
auto
f (_ARGS... args) -> typename A<sizeof...(args)>::value_type
{
return 12;
}
int
main()
{
f(1,2);
}
Go to most recent revision | Compare with Previous | Blame | View Log