1 // { dg-do compile { target c++11 } }
2 // { dg-options "-fabi-version=0" }
4 // { dg-final { scan-assembler "_Z1fIiEDTcmdlfp_psfp_EPT_" } }
5 template <class T> auto f (T* p) -> decltype(delete p, +p) { return p; }
6 // { dg-final { scan-assembler "_Z1gIiEDTcmgsdlfp_psfp_EPT_" } }
7 template <class T> auto g (T* p) -> decltype(::delete p, +p) { return p; }
8 // { dg-final { scan-assembler "_Z1hIiEDTcmdafp_psfp_EPT_" } }
9 template <class T> auto h (T* p) -> decltype(delete[] p, +p) { return p; }
10 // { dg-final { scan-assembler "_Z1iIiEDTcmgsdafp_psfp_EPT_" } }
11 template <class T> auto i (T* p) -> decltype(::delete[] p, +p) { return p; }