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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr55260-1.C
blob
552da8df2620832ca73b82f9a6f65fb463342a8e
1
/* { dg-do compile } */
2
/* { dg-options "-std=gnu++0x -fno-inline" } */
3
/* { dg-add-options bind_pic_locally } */
4
5
struct B
6
{
7
constexpr B ():
8
bp ()
9
{}
10
~B ()
11
{
12
if (bp)
13
bp->f ();
14
}
15
void f ();
16
B *bp;
17
};
18
struct A { B b;
19
};
20
21
void foo ()
22
{
23
A a;
24
}