gcc/testsuite/g++.dg/abi/mangle63.C
raw| 1 | // DR 850 makes this valid |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | // { dg-additional-options -fabi-compat-version=0 } |
| 4 | |
| 5 | template<class T> struct A |
| 6 | { |
| 7 | int mem; |
| 8 | template<class U> decltype(U()+mem) f(); |
| 9 | }; |
| 10 | int i = A<int>().f<int>(); |
| 11 | |
| 12 | // { dg-final { scan-assembler "_ZN1AIiE1fIiEEDTplcvT__E3memEv" } } |