* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist9.C
blobef806d0c8b7db2b4cfcf25cc243120479d6a94be
1 // PR c++/37860
2 // { dg-do compile { target c++11 } }
4 struct b
6   bool t;
8   b() = default;
9   ~b() = default;
10   b& operator=(const b&) = delete;
11   b(const b&) = delete;         // { dg-message "declared" "" { target c++14_down } }
13   b(bool _t): t (_t) { }
16 int main()
18   // copy list initialization
19   b tst1 = { false };
21   // copy initialization.
22   b tst2 = false;               // { dg-error "use" "" { target c++14_down } }
24   // direct list initialization
25   b tst3 { false };
27   // default initialization
28   b tst4;