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
Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.eh
/
crash2.C
blob
195b8623ce162ef6e3eac40c31fdec2c9a356a27
1
// { dg-do assemble }
2
// { dg-options "-O" }
3
// Origin: Thomas Kunert <kunert@physik.tu-dresden.de>
4
5
struct C {
6
~C();
7
};
8
9
struct R {
10
bool empty() const;
11
C m_;
12
};
13
14
struct R1 {
15
R1( const R& a );
16
~R1 ();
17
C m_;
18
};
19
20
R1 get_empty();
21
22
R1::R1( const R& a ) :
23
m_( a.empty() ? get_empty().m_ : C() )
24
{}
25
26
void qnorm( const R & r)
27
{ R1 n( r ); }