| 1 |
// { dg-do compile { target c++11 } } |
| 2 |
|
| 3 |
// Test sizeof |
| 4 |
|
| 5 |
static_assert(sizeof(nullptr) == sizeof(void*), "sizeof(nullptr) is wrong"); |
| 6 |
const decltype(nullptr) mynull = 0; |
| 7 |
static_assert(sizeof(mynull) == sizeof(void*), "sizeof(nullptr) is wrong"); |