about summary refs log tree commit diff homepage
path: root/test
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2015-08-21 18:09:34 +0100
committerCristian Cadar <c.cadar@imperial.ac.uk>2015-08-21 18:09:34 +0100
commit8f6c2fd67c34a9725f79652fb6bcb24f42b0f432 (patch)
tree30aaceb7891170f78a2c021d6b6b3582cf50c7cc /test
parentefc5bde08a611ffd7d0065a2a10bbb6e13ba66d2 (diff)
parent792059626d3b669a90b3e256cf72ab95946840bf (diff)
downloadklee-8f6c2fd67c34a9725f79652fb6bcb24f42b0f432.tar.gz
Merge pull request #251 from ret2libc/entryFnParam
Added option to specify a different entry point from main().  Remove some whitespaces.
Diffstat (limited to 'test')
-rw-r--r--test/Feature/EntryPoint.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Feature/EntryPoint.c b/test/Feature/EntryPoint.c
new file mode 100644
index 00000000..2b6a2c70
--- /dev/null
+++ b/test/Feature/EntryPoint.c
@@ -0,0 +1,11 @@
+// RUN: %llvmgcc -emit-llvm -g -c %s -o %t.bc
+// RUN: rm -rf %t.klee-out
+// RUN: %klee --output-dir=%t.klee-out --entry-point=other_main %t.bc > %t.log
+// RUN: grep "Hello World" %t.log
+
+#include <stdio.h>
+
+int other_main() {
+  printf("Hello World\n");
+  return 0;
+}