diff options
author | Riccardo Schirone <sirmy15@gmail.com> | 2015-08-11 13:42:39 +0200 |
---|---|---|
committer | Riccardo Schirone <sirmy15@gmail.com> | 2015-08-14 13:24:45 +0000 |
commit | 792059626d3b669a90b3e256cf72ab95946840bf (patch) | |
tree | df3345a5e7667d5d97dc25adf9e3e882bc06f567 /test/Feature/EntryPoint.c | |
parent | aff25c9879751fc02298069ed6c93975cfdb08c9 (diff) | |
download | klee-792059626d3b669a90b3e256cf72ab95946840bf.tar.gz |
test: add Feature test for EntryPoint option
Diffstat (limited to 'test/Feature/EntryPoint.c')
-rw-r--r-- | test/Feature/EntryPoint.c | 11 |
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; +} |