Debian Codegraph @

gcc/testsuite/g++.dg/abi/mangle68.C

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