diff options
author | Andrea Mattavelli <andreamattavelli@users.noreply.github.com> | 2016-09-15 12:56:46 +0100 |
---|---|---|
committer | Dan Liew <delcypher@gmail.com> | 2016-09-15 12:56:46 +0100 |
commit | 2a3b9fa786228dadda6d7808dadd8e9a2870b169 (patch) | |
tree | 086f2298fe9dc3d6be4339863acef4fa730a7ff1 /test | |
parent | 5bf634f6db66c819ed84476807bcee020e5f21aa (diff) | |
download | klee-2a3b9fa786228dadda6d7808dadd8e9a2870b169.tar.gz |
Check the existence of the entry point during the initialization of the POSIX runtime. If the check fails, exit with an error. (#457)
Diffstat (limited to 'test')
-rw-r--r-- | test/regression/2016-08-12-empty-file.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/regression/2016-08-12-empty-file.c b/test/regression/2016-08-12-empty-file.c new file mode 100644 index 00000000..b9650278 --- /dev/null +++ b/test/regression/2016-08-12-empty-file.c @@ -0,0 +1,10 @@ +// RUN: %llvmgcc %s -emit-llvm -g -O0 -c -o %t.bc +// RUN: rm -rf %t.klee-out +// RUN: not %klee --output-dir=%t.klee-out %t.bc >%t1.log 2>&1 +// RUN: FileCheck -input-file=%t1.log -check-prefix=CHECK-MAIN-NOT-FOUND %s +// RUN: rm -rf %t.klee-out +// RUN: rm -rf %t1.log +// RUN: not %klee --output-dir=%t.klee-out --posix-runtime %t.bc >%t1.log 2>&1 +// RUN: FileCheck -input-file=%t1.log -check-prefix=CHECK-MAIN-NOT-FOUND %s + +// CHECK-MAIN-NOT-FOUND: 'main' function not found in module. |