about summary refs log tree commit diff homepage
path: root/test/regression
diff options
context:
space:
mode:
authorAndrea Mattavelli <andreamattavelli@users.noreply.github.com>2016-09-16 10:04:27 +0100
committerDan Liew <delcypher@gmail.com>2016-09-16 10:04:27 +0100
commit1bfdbc61f2e14d8b0f2b5ca45ca8266c363cbfc5 (patch)
treea98b88133d260c70c336f51ff09e727c79ca69dc /test/regression
parent9baab03a58ffb8c74a2c3db40256521050f68049 (diff)
downloadklee-1bfdbc61f2e14d8b0f2b5ca45ca8266c363cbfc5.tar.gz
Avoid internalization of non-standard entry point (i.e. not the main function) (#455)
Diffstat (limited to 'test/regression')
-rw-r--r--test/regression/2016-08-11-entry-point-internalize-pass.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/regression/2016-08-11-entry-point-internalize-pass.c b/test/regression/2016-08-11-entry-point-internalize-pass.c
new file mode 100644
index 00000000..4cd8ff8d
--- /dev/null
+++ b/test/regression/2016-08-11-entry-point-internalize-pass.c
@@ -0,0 +1,7 @@
+// RUN: %llvmgcc %s -emit-llvm -g -O0 -c -o %t.bc
+// RUN: rm -rf %t.klee-out
+// RUN: %klee --output-dir=%t.klee-out --entry-point=entry %t.bc
+
+int entry() {
+  return 0;
+}