Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
;
}