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
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
pr48772.C
blob
39c1094e8105dead824d61c399b7d4546d921613
1
// { dg-do compile }
2
// { dg-options "-O -fnon-call-exceptions -fno-tree-ccp -fno-tree-dce" }
3
4
extern "C" void abort ();
5
6
struct A
7
{
8
void foo ()
9
{
10
this->bar ();
11
}
12
virtual void bar ()
13
{
14
abort ();
15
}
16
~A ()
17
{
18
}
19
};
20
21
struct B:A
22
{
23
virtual void bar ()
24
{
25
}
26
};
27
28
int
29
main ()
30
{
31
B b;
32
b.foo ();
33
return 0;
34
}
35