blob: ceec4de2d5e347a7254c36311c1cf980206a638f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// RUN: %llvmgcc %s -emit-llvm -O0 -c -o %t.bc
// RUN: %klee --posix-runtime %t.bc --sym-args 1 1 1
// RUN: test -f klee-last/test000001.free.err
// RUN: test -f klee-last/test000002.free.err
// RUN: test -f klee-last/test000003.free.err
int main(int argc, char **argv) {
switch(klee_range(0, 3, "range")) {
case 0:
free(argv);
break;
case 1:
free(argv[0]);
break;
case 2:
free(argv[1]);
break;
}
return 0;
}
|