Skip to content

Commit da940a9

Browse files
Test for assignement of annotated field
This tests that the assignement is correctly analyzed by jbmc although the left-hand-side and right-hand-side differ in annotated type.
1 parent 9d94bf7 commit da940a9

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed
Binary file not shown.
624 Bytes
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@interface FieldAnnotation {
2+
}
3+
4+
public class Test {
5+
@FieldAnnotation
6+
public static double d;
7+
8+
public void check() {
9+
double f = d;
10+
assert(f == d);
11+
assert(f != d);
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CORE
2+
Test.class
3+
--function Test.check
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
assertion at file Test.java line 10 .* SUCCESS
7+
assertion at file Test.java line 11 .* FAILURE
8+
--
9+
--

0 commit comments

Comments
 (0)