From 792059626d3b669a90b3e256cf72ab95946840bf Mon Sep 17 00:00:00 2001 From: Riccardo Schirone Date: Tue, 11 Aug 2015 13:42:39 +0200 Subject: test: add Feature test for EntryPoint option --- test/Feature/EntryPoint.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/Feature/EntryPoint.c (limited to 'test/Feature/EntryPoint.c') 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 + +int other_main() { + printf("Hello World\n"); + return 0; +} -- cgit 1.4.1