diff options
author | Frank Busse <bb0xfb@gmail.com> | 2017-11-01 20:56:01 +0000 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2017-11-24 14:42:35 +0000 |
commit | 47ae3ba9fcefae4d170c16f2fb54c489a38855c9 (patch) | |
tree | 6e582af858c20be2c8aaf2327dd8b519282bc15f /test/regression | |
parent | 1b4671cbffd53ab27f48f30aae21da6d08242323 (diff) | |
download | klee-47ae3ba9fcefae4d170c16f2fb54c489a38855c9.tar.gz |
klee_make_symbolic: add test cases for API
Diffstat (limited to 'test/regression')
-rw-r--r-- | test/regression/2017-11-01-test-with-empty-varname.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/regression/2017-11-01-test-with-empty-varname.c b/test/regression/2017-11-01-test-with-empty-varname.c new file mode 100644 index 00000000..5d73ea20 --- /dev/null +++ b/test/regression/2017-11-01-test-with-empty-varname.c @@ -0,0 +1,11 @@ +// RUN: %llvmgcc %s -emit-llvm -g -c -o %t1.bc +// RUN: rm -rf %t.klee-out +// RUN: %klee --output-dir=%t.klee-out %t1.bc +// RUN: FileCheck %s --input-file=%t.klee-out/warnings.txt + +int main() { + unsigned a; + + klee_make_symbolic(&a, sizeof(a), ""); +// CHECK-NOT: KLEE: WARNING: unable to write output test case, losing it +} |