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
PR c++/49508
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
warning8.C
blob
b5ff3f3de60452489f9430fa03074ef6797d8657
1
// { dg-do assemble }
2
3
struct A {
4
A();
5
~A();
6
};
7
8
struct B {
9
B (const A&);
10
~B ();
11
};
12
13
const B& f ()
14
{
15
A a;
16
return a; // { dg-warning "" } returning reference to temporary
17
}