2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / ebnull-cast.C
blobd4c0a46c8c42159438e5aa927b9d4512bdd1409d
1 // { dg-do run  }
2 class null {
3     null (null const&);
4     void operator& ();
6   public:
7     null () {}
9     template <typename T>
10     operator T* () const { return 0; }
11 } const null;
14 int main ()
16     int *p = static_cast<int*>(null);
18     return 0;