Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nullptr12.C
blob: 439708205605812fd97783daa7abd790783af375 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
// Test sizeof
static_assert
(
sizeof
(
nullptr
)
==
sizeof
(
void
*),
"sizeof(nullptr) is wrong"
);
const
decltype
(
nullptr
)
mynull
=
0
;
static_assert
(
sizeof
(
mynull
)
==
sizeof
(
void
*),
"sizeof(nullptr) is wrong"
);