repo.or.cz
/
official-gcc
/
constexpr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add support for C++0x nullptr.
[official-gcc/constexpr.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nullptr01.C
blob
8de877bab50f8e8763d40c9d9f1439a21bb388cf
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;