// PR c++/43680// Test that we don't make excessively aggressive assumptions about what// values an enum variable can have.// { dg-options "-O2 -fPIC" }// { dg-do run }extern"C"voidabort();enumE{A,B,C,D};voidCheckE(constEvalue){longv=value;if(v<=D)abort();}intmain(){CheckE(static_cast<E>(5));}