1 // PR c++/89356
2 // { dg-do compile { target c++11 } }
3 
4 template<typename T>
5 auto fn () -> decltype(unsigned{2u} + (T)3) { return 42; }
6 
7 // { dg-final { scan-assembler "_Z2fnIiEDTpltljLj2EEcvT_Li3EEv" } }
8 template auto fn<int>() -> decltype(unsigned{2u} + (int)3);
9