Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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'
);