view gcc/testsuite/g++.dg/cpp0x/alias-decl-33a.C @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

// PR c++/51239
// { dg-require-effective-target c++11 }
// This variant should work because tail is equivalent to list.

template<class y, class... x>
class list{};
template<class a, class... b>
using tail=list<a, b...>;
template <class...T>
void f(tail<T...>);

int main()
{
  f<int,int>({});
}