Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp0x/decltype54.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR c++/51908 // { dg-do compile { target c++11 } } struct foo1 { template <typename Ret, typename... Args> operator decltype(static_cast<Ret (*)(Args...)>(nullptr)) () const; }; struct foo2 { template <typename Ret, typename... Args> operator decltype(static_cast<Ret (*)(Args... args)>(nullptr)) () const; }; struct foo3 { template <typename Ret, typename Arg> operator decltype(static_cast<Ret (*)(Arg)>(nullptr)) () const; }; struct foo4 { template <typename Ret, typename Arg> operator decltype(static_cast<Ret (*)(Arg arg)>(nullptr)) () const; };