diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Feature/ExitOnErrorType.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Feature/ExitOnErrorType.c b/test/Feature/ExitOnErrorType.c new file mode 100644 index 00000000..a68a92e0 --- /dev/null +++ b/test/Feature/ExitOnErrorType.c @@ -0,0 +1,15 @@ +// RUN: %llvmgcc %s -g -emit-llvm -O0 -c -o %t1.bc +// RUN: rm -rf %t.klee-out +// RUN: %klee --output-dir=%t.klee-out -exit-on-error-type Assert %t1.bc 2>&1 + +#include <assert.h> +#include <klee/klee.h> + +int main() { + assert(klee_int("assert")); + + while (1) { + } + + return 0; +} |