Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.robertl/eb58.C

raw
1 // { dg-do compile }
2 // { dg-options "-w -fpermissive" }
3 // Test for g++ array init extension
4
5 class A {
6 public:
7 A(int i) {}
8 private:
9 A( const A & ) {}
10 };
11
12 main()
13 {
14 A *list = new A[10](4); // { dg-error "parenthesized|could not convert" }
15 }