Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/variadic179.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
rev | line source |
---|---|
152 | 1 // PR c++/94628 |
2 // { dg-do compile { target c++11 } } | |
3 | |
4 int f(int, int); | |
5 int f(int); | |
6 | |
7 template<class...Args> | |
8 auto select(Args... args) -> decltype(f(args...)) | |
9 { | |
10 if (sizeof...(Args) > 1) | |
11 return select<char>(7); | |
12 else | |
13 return 0; | |
14 } | |
15 | |
16 int a = select(0, 1); |