* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-array15.C
bloba59e6f5df144b9b5fd2971f6e681cc4f6e0d847a
1 // PR c++/68949
2 // { dg-do run { target c++11 } }
4 struct Sub {
5     int i;
7     constexpr Sub() : i(-1) {} // remove constexpr and it works as expected
8     Sub(Sub&& rhs); // remove this constructor and it works as epxected.
9 };
11 // v-- move this inline and it works as expected
12 // v-- remove ': Sub()' and it works as expected
13 Sub::Sub(Sub&& rhs) : Sub() { int tmp = i; i = rhs.i; rhs.i = tmp; }
15 struct Class {
16     // v-- remove '[1]' and it works as expected
17     // v-- add '= {}' and it works as expected
18     Sub s[1];
20     // v-- add ': s{}' and it works as expected
21     // v-- removing this constructor makes it work as expected
22     Class() {}
25 int main() {
26     Class c;
27     if (c.s[0].i != -1)
28       __builtin_abort();