mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 20:01:31 -05:00
* g++.dg/*.C: Use target c++17 instead of explicit dg-options. * lib/g++-dg.exp: Don't test C++11 by default. Add C++17 to the list of default stds to test. From-SVN: r265343
14 lines
192 B
C
14 lines
192 B
C
// { dg-do run { target c++17 } }
|
|
|
|
template <class... T>
|
|
auto f() {
|
|
int i = 42;
|
|
return ([i]{ return T(i); }() + ...);
|
|
}
|
|
|
|
int main()
|
|
{
|
|
if (f<int,double>() != 84)
|
|
__builtin_abort();
|
|
}
|