about summary refs log tree commit diff homepage
path: root/test/Solver/NoSTP.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Solver/NoSTP.c')
-rw-r--r--test/Solver/NoSTP.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Solver/NoSTP.c b/test/Solver/NoSTP.c
new file mode 100644
index 00000000..0e0a90c5
--- /dev/null
+++ b/test/Solver/NoSTP.c
@@ -0,0 +1,10 @@
+// REQUIRES: not-stp
+// 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=stp %t1.bc 2>&1 | FileCheck %s
+// CHECK: Not compiled with STP support
+// CHECK: ERROR: Failed to create core solver
+
+int main(int argc, char **argv) {
+  return 0;
+}