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
Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
ebnull-oldcast.C
blob
be3a5644ff3948ac4fa1452bcb49084ccc3e8dc5
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
int main ()
14
{
15
int *p = (int*) null;
16
17
return 0;
18
}