1 /* PR c++/90938 - Initializing array with {1} works, but not {0}
2    { dg-do compile { target c++11 } } */
3 
4 struct A
5 {
6   A () = delete;
7   A (int) = delete;
8 };
9 
10 A a_[] = { 0 };            // { dg-error "use of deleted function 'A::A\\\(int\\\)'" }
11 
12 A a1[1] = { 0 };           // { dg-error "use of deleted function 'A::A\\\(int\\\)'" }
13 
14 
15 struct B
16 {
17   B () = delete;
18   B (int) = delete;
19   B (long);
20 };
21 
22 B b_[] = { 0 };            // { dg-error "use of deleted function 'B::B\\\(int\\\)'" }
23 
24 B b1[1] = { 0 };           // { dg-error "use of deleted function 'B::B\\\(int\\\)'" }
25 
26 B b2[] = { 0L };
27 B b3[1] = { 0L };
28