aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-__func__2.C
blob: 226ae199daaef3cbd990e4f421ce91b3bc603dd3 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/70353
// { dg-do compile { target c++11 } }

constexpr const char* ce ()
{
   return __func__;
}

#define SA(X) static_assert((X),#X)
SA(ce()[0] == 'c');