Skip to content

Commit 2461ecf

Browse files
Regression test for _Bool parameter
1 parent 70b89c3 commit 2461ecf

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

regression/cbmc/c99_Bool/main.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include <assert.h>
2+
3+
void foo(_Bool y)
4+
{
5+
int x;
6+
if(y)
7+
{
8+
x=(int)y;
9+
assert(x==1);
10+
}
11+
}

regression/cbmc/c99_Bool/test.desc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
main.c
3+
--function foo
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
8+
^warning: ignoring

0 commit comments

Comments
 (0)