Skip to content

Commit 2675a17

Browse files
author
Daniel Kroening
committed
added test for Boolean parameters
1 parent 5b67c01 commit 2675a17

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed
534 Bytes
Binary file not shown.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class boolean1 {
2+
3+
static public void doit(boolean a, int div)
4+
{
5+
// Boolean shall be either true or false.
6+
if (a == true) return;
7+
if (a == false) return;
8+
9+
assert false;
10+
}
11+
12+
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
KNOWNBUG
2+
boolean1.class
3+
--function boolean1.doit
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
8+
^warning: ignoring

0 commit comments

Comments
 (0)