mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-14 21:10:25 +00:00
Adapt test when llvm is built without Z3 support (error message changed)
This commit is contained in:
parent
24f56dd420
commit
3e2d52cf55
2
debian/qualify-clang.sh
vendored
2
debian/qualify-clang.sh
vendored
@ -406,7 +406,7 @@ void testBitwiseRules(unsigned int a, int b) {
|
||||
' > foo.c
|
||||
|
||||
clang-$VERSION -cc1 -analyze -analyzer-constraints=range -analyzer-checker=core,debug.ExprInspection -analyzer-constraints=z3 foo.c &> foo.log || true
|
||||
if ! grep -q "LLVM was not compiled with Z3 support" foo.log; then
|
||||
if ! grep -q "error: analyzer constraint manager 'z3' is only available if LLVM was built with -DLLVM_ENABLE_Z3_SOLVER=ON" foo.log; then
|
||||
# Should work
|
||||
clang-$VERSION -cc1 -analyze -analyzer-constraints=range -analyzer-checker=core,debug.ExprInspection -verify -analyzer-config eagerly-assume=false -analyzer-constraints=z3 foo.c
|
||||
clang-$VERSION -cc1 -analyze -analyzer-constraints=range -analyzer-checker=core,debug.ExprInspection -analyzer-constraints=z3 foo.c &> foo.log
|
||||
|
Loading…
Reference in New Issue
Block a user