repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge to HEAD at tree-cleanup-merge-20041024 .
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
eb63.C
blob
a49fb02641cdc2dd794051635fc956270302aeea
1
// { dg-do run }
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);
17
}