]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/constexpr-__func__2.C
Make __PRETTY_FUNCTION__-like functions mergeable string csts (PR c++/64266).
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-__func__2.C
CommitLineData
a3af5975 1// PR c++/70353
c3a961ad 2// { dg-do compile { target c++11 } }
a3af5975 3
4constexpr const char* ce ()
5{
6 return __func__;
7}
8
9const char *c = ce();
10
c3a961ad 11#define SA(X) static_assert((X),#X)
12SA(ce()[0] == 'c');