☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
ebnull-cast.C
☽
☼
gcc/testsuite/g++.old-deja/g++.robertl/ebnull-cast.C
code
plain
raw
1
// { dg-do run }
2
class null {
3
null (null const&);
4
void operator& ();
5
6
public:
7
null () {}
8
9
template <typename T>
10
operator T* () const { return 0; }
11
} const null;
12
13
14
int main ()
15
{
16
int *p = static_cast<int*>(null);
17
18
return 0;
19
}