repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nullptr01.C
blob
90917d74f74cb2ef04174650cc32c850cb71185c
1
// { dg-do compile { target c++11 } }
2
3
// Test assignment to pointer
4
5
char* const cp1 = nullptr;
6
char* const cp2 = __null;
7
char* const cp3 = 0;
8
decltype(nullptr) mynull = 0;
9
char* const cp4 = mynull;