aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/Feature
diff options
context:
space:
mode:
Diffstat (limited to 'test/Feature')
-rw-r--r--test/Feature/DumpStatesOnHalt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Feature/DumpStatesOnHalt.c b/test/Feature/DumpStatesOnHalt.c
index c65d5568..993fdb6a 100644
--- a/test/Feature/DumpStatesOnHalt.c
+++ b/test/Feature/DumpStatesOnHalt.c
@@ -2,8 +2,10 @@
// RUN: %klee --stop-after-n-instructions=1 --dump-states-on-halt=true %t1.bc 2>&1 | FileCheck %s
// RUN: test -f %T/klee-last/test000001.ktest
-int main() {
- int x = 10;
+int main(int argc, char** argv) {
+ int x = 1;
+ if (argc == 1)
+ x = 0;
return x;
}
// CHECK: halting execution, dumping remaining states