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
c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
vect
/
pr95576.cc
blob
64e0e2dae7f59cd6629142d1d67f74da3f99ef9c
1
// { dg-do compile }
2
// { dg-additional-options "-O3 -fno-tree-forwprop -fcompare-debug" }
3
4
struct
S
{
5
virtual
~
S
();
6
struct
S
*
s
;
7
virtual
void
m
();
8
int
f
;
9
void
*
d
;
10
};
11
12
struct
T
:
S
{
13
void
m
();
14
};
15
16
S
::~
S
() {
17
if
(
s
) {
18
s
->
f
=
0
;
19
s
->
d
=
__null
;
20
}
21
}
22
23
void
T
::
m
() {}