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
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nullptr05.C
blob
65121b659d92dcb8a959fda44224c0c484cb1853
1
// { dg-do compile { target c++11 } }
2
3
// Test assignment to method pointer
4
5
class F { };
6
7
typedef void (F::*pmf)();
8
9
const pmf pmf1 = nullptr;
10
const pmf pmf2 = __null;
11
const pmf pmf3 = 0;
12
decltype(nullptr) mynull = 0;
13
const pmf pmf4 = mynull;