about summary refs log tree commit diff homepage
path: root/test/Solver/NoZ3.c
diff options
context:
space:
mode:
authorDaniel Schemmel <daniel@schemmel.net>2022-06-29 23:47:22 +0100
committerCristian Cadar <c.cadar@imperial.ac.uk>2023-02-28 08:57:16 +0000
commit04a42c95943ae0a6c514b133a720bd94fc54b054 (patch)
tree5aa797f3a1fa54cf88583c6c75d3a6230b7c5a16 /test/Solver/NoZ3.c
parent03a38141f95f132ebb8bd840e3063b504fe3ed1d (diff)
downloadklee-04a42c95943ae0a6c514b133a720bd94fc54b054.tar.gz
Add a few simple solver tests
Diffstat (limited to 'test/Solver/NoZ3.c')
-rw-r--r--test/Solver/NoZ3.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Solver/NoZ3.c b/test/Solver/NoZ3.c
new file mode 100644
index 00000000..6e8d4479
--- /dev/null
+++ b/test/Solver/NoZ3.c
@@ -0,0 +1,10 @@
+// REQUIRES: not-z3
+// RUN: %clang %s -emit-llvm %O0opt -c -o %t1.bc
+// RUN: rm -rf %t.klee-out
+// RUN: not %klee --output-dir=%t.klee-out --solver-backend=z3 %t1.bc 2>&1 | FileCheck %s
+// CHECK: Not compiled with Z3 support
+// CHECK: ERROR: Failed to create core solver
+
+int main(int argc, char **argv) {
+  return 0;
+}