2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.benjamin / 18208.C
blob2e9b7ce7ab69d9ad88956070ca2d684e0afd72fe
1 // { dg-do assemble  }
2 // 981204 bkoz
3 // g++/18208
5 typedef unsigned int uint_32;
7 class puertorico {
8 public:
9   void *f ();
10 private:
11   uint_32 member;
14 void foo( )
16   uint_32 ui;
17   puertorico obj;
19   // Bug using static_cast<>
20   ui = static_cast<uint_32>(obj); // { dg-error "" } // ERROR -
21   
22   // Bug when missing the pair of braces
23   ui = (uint_32) obj.f; // { dg-error "" } // ERROR -