* 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
11 lines
201 B
C
11 lines
201 B
C
// { dg-do compile { target c++17 } }
|
|
|
|
struct S {
|
|
int i;
|
|
constexpr S() : i(5) {
|
|
([*this] () { return i + 10; }());
|
|
}
|
|
constexpr operator int() const { return i; }
|
|
};
|
|
constexpr int x = S();
|