mips.c (mips16_copy_fpr_return_value): New function, split out from...
[official-gcc.git] / gcc / testsuite / g++.dg / init / brace6.C
blobffb70118f9e8da74b9683f7f1202f23ad516e61d
1 /* PR c++/30759 */
2 /* { dg-do "compile" } */
4 struct A {
5    A(int) { }
6 };
8 struct B {
9    B(const B&);
10    int b;
13 struct C {};
15 struct D { int c; };
17 int main()
19    int i = { 1 };
20    int j = { 1, 2 }; /* { dg-error "requires one element" } */
21    A a = { 6 }; /* { dg-error "initializer for non" } */
22    B b = { 6 }; /* { dg-error "initializer for non" } */
23    C c = { 6 }; /* { dg-error "too many initializers" } */
24    D d = { 6 };