Fixed #3016 (Preprocessor has incorrect precedence(?) for &&)
This commit is contained in:
parent
cf6d04de74
commit
787bc4c384
|
@ -7765,6 +7765,7 @@ bool Tokenizer::simplifyCalculations()
|
|||
tok->str(result);
|
||||
tok->deleteNext();
|
||||
tok->deleteNext();
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1050,7 +1050,8 @@ private:
|
|||
ASSERT_EQUALS(true, Preprocessor::match_cfg_def(cfg, "A<2"));
|
||||
ASSERT_EQUALS(false, Preprocessor::match_cfg_def(cfg, "A==2"));
|
||||
ASSERT_EQUALS(false, Preprocessor::match_cfg_def(cfg, "A<1"));
|
||||
TODO_ASSERT_EQUALS(true, false, Preprocessor::match_cfg_def(cfg, "A>=1&&B<=A"));
|
||||
ASSERT_EQUALS(false, Preprocessor::match_cfg_def(cfg, "A>=1&&B<=A"));
|
||||
ASSERT_EQUALS(true, Preprocessor::match_cfg_def(cfg, "A==1 && A==1"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue