* 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
8 lines
163 B
C
8 lines
163 B
C
// Testcase from P0170R1
|
|
// { dg-do compile { target c++17 } }
|
|
|
|
constexpr int AddEleven(int n){
|
|
return[n]{return n+11;}();
|
|
}
|
|
static_assert(AddEleven(5)==16,"");
|