summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-__func__.C
blob: a71ed6c63c2b3284e0032381820c0c9055f27eb3 (plain)
1
2
3
4
5
6
// PR c++/55425
// { dg-do compile { target c++11 } }

constexpr const char* x() { return __func__; }
constexpr const char* y() { return __FUNCTION__; }
constexpr const char* z() { return __PRETTY_FUNCTION__; }