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