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
/
nullptr33.C
blob
75c782ac8ffd1e0c1307b6e93479eca83ea902d5
1
// PR c++/63757
2
// { dg-do compile { target c++11 } }
3
4
typedef decltype(nullptr) nullptr_t;
5
6
void bar(void*) {}
7
8
struct foo
9
{
10
operator nullptr_t()
11
{
12
return nullptr;
13
}
14
};
15
16
int main()
17
{
18
bar(foo());
19
}