repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-__func__2.C
blob
673fb4f3a93cbd83fd2c1a78d1da8fce3e71c2f3
1
// PR c++/70353
2
// { dg-do compile { target c++11 } }
3
4
constexpr const char* ce ()
5
{
6
return __func__;
7
}
8
9
const char *c = ce();
10
11
#define SA(X) static_assert((X),#X)
12
SA(ce()[0] == 'c');