repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
ebnull-cast.C
blob
d4c0a46c8c42159438e5aa927b9d4512bdd1409d
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
}