repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
init
/
ref12.C
blob
4430e174b7427dee47a4a88e75169ba602a39fb8
1
// PR c++/17435
2
// { dg-do run }
3
4
extern "C" void abort ();
5
6
bool ok;
7
8
struct A
9
{
10
void func() const
11
{
12
ok = 1;
13
}
14
15
~A()
16
{
17
if (!ok)
18
abort ();
19
}
20
};
21
22
struct B : public A
23
{
24
};
25
26
int main()
27
{
28
A const& r1 = B();
29
r1.func();
30
}