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
Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ipa
/
devirt-28.C
blob
0b7f792da8e7681f01c09e159191b84992d94348
1
// PR c++/58678
2
// { dg-options "-O3 -fdump-ipa-devirt" }
3
4
struct A {
5
virtual ~A();
6
};
7
struct B : A {
8
virtual int m_fn1();
9
};
10
void fn1(B* b) {
11
delete b;
12
}
13
14
// { dg-final { scan-assembler-not "_ZN1AD2Ev" } }
15
// { dg-final { scan-assembler-not "_ZN1BD0Ev" } }
16
// { dg-final { scan-ipa-dump "Target is artificial" "devirt" } }