a*=2;// expected-note {{value 2147483648 is outside the range}} expected-note {{ 9223372036854775808 }}
while(a!=a/2)
a*=2;// expected-note {{value 2147483648 is outside the range}} expected-note {{ 9223372036854775808 }} expected-note {{floating point arithmetic produces an infinity}}
returntrue;
}
@@ -375,6 +404,7 @@ namespace compound_assign {
static_assert(test_overflow<unsignedshort>(),"");// ok
static_assert(test_overflow<unsignedlonglong>(),"");// ok