Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-nullptr.C
blob: 8ff89982d20c8ef76b564895a51bb755bf6a74f4 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
constexpr
int
zero
()
{
return
0
;
}
void
*
ptr1
=
zero
();
// { dg-error "int" }
constexpr
void
*
ptr2
=
zero
();
// { dg-error "int" }