blob: 3ffa39d466547788b5487e77c485dc33bd8b9808 (
plain)
1
2
3
4
5
6
7
8
9
|
// PR c++/89356
// { dg-do compile { target c++11 } }
// { dg-additional-options -fabi-compat-version=0 }
template<typename T>
auto fn () -> decltype(unsigned{2u} + (T)3) { return 42; }
// { dg-final { scan-assembler "_Z2fnIiEDTpltljLj2EEcvT_Li3EEv" } }
template auto fn<int>() -> decltype(unsigned{2u} + (int)3);
|