Debian Codegraph @

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

raw
1 // { dg-do compile }
2 // { dg-options "-w -fpermissive" }
3 //This uses GNU extensions, so disable -ansi
4 #include <stdio.h>
5 #include <stdlib.h>
6
7 class A {
8 public:
9 A(bool b) { abort(); }
10 A(int a, bool b) { printf("cool\n"); }
11 };
12
13 main() {
14 A* a;
15
16 a = new A[2](1,false); // { dg-error "parenthesized" "" { target c++17_down } }
17 }