// ---------------------------------------------------------------------- // // bigenum.cc - Does enum properly handle large unsigned values? // // History: // 30-Jul-1999 WEB Initial draft // 25-Apr-2001 WEB s//"ISOcxx\/ISOcxxSyntax.hh"/ // // ---------------------------------------------------------------------- #include "ISOcxx/ISOcxxSyntax.hh" int main() { enum e { #if defined DEFECT_NO_UNSIGNED_ENUM E = int(1UL << 31) #else E = (1UL << 31) #endif }; // e e x( E ); return x == e(1UL << 31) ? 0 : 1 ; } // main()