☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nullptr33.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/nullptr33.C
code
plain
raw
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
}