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
/
new30.C
blob
24582d8fb1cbda61848f96cb7e867410cab99f70
1
// PR c++/40975
2
3
struct data_type
4
{
5
// constructor required to reproduce compiler bug
6
data_type() {}
7
};
8
9
struct ptr_type
10
{
11
// array new as default argument required to reproduce compiler bug
12
ptr_type (data_type* ptr = new data_type[1]) { delete[] ptr; }
13
};
14
15
ptr_type obj;