repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merged trunk at revision 161680 into branch.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nullptr12.C
blob
1713259f103626a89a55dfae773475bce4a686d7
1
// { dg-do compile }
2
// { dg-options "-std=c++0x" }
3
4
// Test sizeof
5
6
static_assert(sizeof(nullptr) == sizeof(void*), "sizeof(nullptr) is wrong");
7
const decltype(nullptr) mynull = 0;
8
static_assert(sizeof(mynull) == sizeof(void*), "sizeof(nullptr) is wrong");