Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-__func__2.C
blob: 673fb4f3a93cbd83fd2c1a78d1da8fce3e71c2f3 [
file
] [
log
] [
blame
]
// PR c++/70353
// { dg-do compile { target c++11 } }
constexpr
const
char
*
ce
()
{
return
__func__
;
}
const
char
*
c
=
ce
();
#define
SA
(
X
)
static_assert
((
X
),#
X
)
SA
(
ce
()[
0
]
==
'c'
);