aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb63.C
blob: 0e8559124d62326c372a27eacd60238a7f25e063 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Special g++ Options:
//This uses GNU extensions, so disable -ansi
#include <stdio.h>

class A {
public:
        A(bool b) { abort(); }
        A(int a, bool b) { printf("cool\n"); }
};

main() {
        A* a;
	a = new A[2] = { A(1,false), A(1,false) } ;
        a = new A[2](1,false);
}