repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wuse-after-free3.C
blob
8ef82021380a36940fca198ab88d3b4e86679371
1
// PR target/104213
2
// { dg-do compile }
3
// { dg-options "-Wuse-after-free" }
4
5
struct A
6
{
7
virtual ~A ();
8
void f ();
9
};
10
11
A::~A ()
12
{
13
operator delete (this);
14
f (); // { dg-warning "used after" "" { xfail arm_eabi } }
15
// arm_eabi's cdtors return this, which disables -Wuse-after-free
16
// warnings for cdtors' "this".
17
}