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
/
nullptr01.C
blob
de3860c9ea417ac3dcfaa585bb59640d7c9f1da6
1
// { dg-do compile }
2
// { dg-options "-std=c++0x" }
3
4
// Test assignment to pointer
5
6
char* const cp1 = nullptr;
7
char* const cp2 = __null;
8
char* const cp3 = 0;
9
decltype(nullptr) mynull = 0;
10
char* const cp4 = mynull;