Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
Wpessimizing-move5.C
blob: 02ad2113505533bedfa45d22bcb5b12a9480804d [
file
] [
log
] [
blame
]
// PR c++/87080
// { dg-do compile { target c++11 } }
// { dg-options "-Wpessimizing-move" }
struct
a
{
template
<
typename
b
>
a
&
operator
<<(
b
);
};
a c
();
template
<typename>
a fn2
()
{
int
d
=
42
;
return
c
()
<<
d
;
}