summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr84729.C
blob: 530dbff23e14e1e2358531e356ff6dac7d5ef058 (plain)
1
2
3
4
5
6
7
// { dg-do compile }
// { dg-options "-fpermissive" }

typedef int b[2];
void a() {
  new b(a); // { dg-error "parenthesized initializer in array new|invalid conversion" }
}