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
/
dtor3.C
blob
2af1ffe46347832210735ce9a9eb01913e332768
1
// PR c++/17976
2
// { dg-do run }
3
4
extern "C" void abort();
5
struct A
6
{
7
static int i;
8
A(){}
9
~A(){i++;if(i>1)abort();}
10
};
11
12
int A::i = 0;
13
14
A a;
15
extern A a;
16
17
int main()
18
{
19
return 0;
20
}
21