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
/
array14.C
blob
847bd1f20f1ea4d77238ee09314d2fd3cb4e8e88
1
// PR c++/12883
2
// Bug: Destructor of array object not called if no prior
3
// instantiation of the template has happened.
4
5
// { dg-do run }
6
7
int ret = 1;
8
9
template <int> struct X
10
{
11
X(int) { }
12
~X() { ret = 0; }
13
};
14
15
int main()
16
{
17
{
18
X<0> array[] = { 0 };
19
}
20
return ret;
21
}