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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
new41.C
blob
0559b1dac58068acebb5bcadfafa140784589d70
1
// PR c++/55446
2
// { dg-do run }
3
4
struct S
5
{
6
S() { }
7
};
8
9
int n = 1;
10
11
void* operator new[](__SIZE_TYPE__)
12
{
13
n = -1;
14
return &n;
15
}
16
17
int main()
18
{
19
new S[0];
20
if (n != -1)
21
__builtin_abort();
22
}