Skip to content

Commit fada618

Browse files
add test case related to the exit function
Signed-off-by: Lucas Cordeiro <[email protected]>
1 parent be2709c commit fada618

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

regression/cbmc-slice/slice18/main.c

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
void exit(int status);
2+
3+
int main() {
4+
int x;
5+
6+
if(x==10)
7+
exit(1);
8+
9+
if(x==10)
10+
assert(0);
11+
}
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
main.c
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
8+
^warning: ignoring

0 commit comments

Comments
 (0)