re PR c++/87080 (ice in cp_get_fndecl_from_callee, at cp/cvt.c:965)
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / Wpessimizing-move5.C
blob02ad2113505533bedfa45d22bcb5b12a9480804d
1 // PR c++/87080
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wpessimizing-move" }
5 struct a {
6   template<typename b> a &operator<<(b);
7 };
8 a c();
9 template<typename>
10 a fn2()
12   int d = 42;
13   return c() << d;