Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" }