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
/
abi
/
guard2.C
blob
c35fa7e1c82b98f1d719ac3f3f87651e1b21fba1
1
// PR c++/41611
2
// Test that the guard gets its own COMDAT group.
3
// { dg-final { scan-assembler "_ZGVZN1A1fEvE1i,comdat" { target *-*-linux* *-*-gnu* } } }
4
5
struct A {
6
static int f()
7
{
8
static int &i = *new int();
9
return i;
10
}
11
};
12
13
int main()
14
{
15
return A::f();
16
}