diff options
Diffstat (limited to 'clang/test/Analysis/bitwise-ops.c')
| -rw-r--r-- | clang/test/Analysis/bitwise-ops.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/clang/test/Analysis/bitwise-ops.c b/clang/test/Analysis/bitwise-ops.c index 407aa19289c..5ad662806f5 100644 --- a/clang/test/Analysis/bitwise-ops.c +++ b/clang/test/Analysis/bitwise-ops.c @@ -7,10 +7,9 @@ void testPersistentConstraints(int x, int y) { // Sanity check CHECK(x); // expected-warning{{TRUE}} CHECK(x & 1); // expected-warning{{TRUE}} - - // False positives due to SValBuilder giving up on certain kinds of exprs. - CHECK(1 - x); // expected-warning{{UNKNOWN}} - CHECK(x & y); // expected-warning{{UNKNOWN}} + + CHECK(1 - x); // expected-warning{{TRUE}} + CHECK(x & y); // expected-warning{{TRUE}} } int testConstantShifts_PR18073(int which) { @@ -29,4 +28,4 @@ int testConstantShifts_PR18073(int which) { default: return 0; } -}
\ No newline at end of file +} |

