File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -3402,18 +3402,18 @@ TEST_CASE("Bitwise operators", "[bitwise]")
34023402 te_parser::supports_32bit ())
34033403 {
34043404 val = std::numeric_limits<uint32_t >::max ();
3405- decltype (val) res = ~val;
3406- CHECK (tep.evaluate (" ~" + std::to_string (val)) == res );
3405+ decltype (val) res2 = ~val;
3406+ CHECK (tep.evaluate (" ~" + std::to_string (val)) == res2 );
34073407
34083408 val /= 2 ;
3409- res = ~val;
3410- CHECK (tep.evaluate (" ~" + std::to_string (val)) == res );
3409+ res2 = ~val;
3410+ CHECK (tep.evaluate (" ~" + std::to_string (val)) == res2 );
34113411
34123412 val = 1986 ;
3413- res = ~val;
3414- CHECK (tep.evaluate (" ~" + std::to_string (val)) == res );
3415- CHECK (tep.evaluate (" +~1986" ) == res );
3416- CHECK (tep.evaluate (" ~+1986" ) == res );
3413+ res2 = ~val;
3414+ CHECK (tep.evaluate (" ~" + std::to_string (val)) == res2 );
3415+ CHECK (tep.evaluate (" +~1986" ) == res2 );
3416+ CHECK (tep.evaluate (" ~+1986" ) == res2 );
34173417 }
34183418 }
34193419
You can’t perform that action at this time.
0 commit comments