view gcc/testsuite/g++.dg/cpp0x/variadic179.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

// PR c++/94628
// { dg-do compile { target c++11 } }

int f(int, int);
int f(int);

template<class...Args>
auto select(Args... args) -> decltype(f(args...))
{
  if (sizeof...(Args) > 1)
    return select<char>(7);
  else
    return 0;
}

int a = select(0, 1);