1 // { dg-do compile { target c++11 } }
2 // { dg-additional-options -fabi-compat-version=0 }
4 template <class T> T g(T t1, T t2) { return t2; }
5 // { dg-final { scan-assembler "_Z2f1IiEDTcl1gfp_ilEEET_" } }
6 template <class T> auto f1 (T t) -> decltype(g(t,{})) { return g(t,{}); }
7 // { dg-final { scan-assembler "_Z2f2IiEDTcl1gfp_tlT_EEES0_" } }
8 template <class T> auto f2 (T t) -> decltype(g(t,T{})) { return g(t,T{}); }