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
reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
new-array.C
blob
5737c99bcd03b11dff1149a5e6a9bbf3259ee6ed
1
// { dg-do assemble }
2
// GROUPS passed operator-new
3
typedef struct {
4
int a;
5
} AStruct;
6
7
void MakeBug() {
8
AStruct *job;
9
10
// This used to crash, it should now give error(s).
11
job = new AStruct[];// { dg-error "" } .*
12
13
job = new AStruct;
14
}
15
16
int main () {
17
MakeBug();
18
}