We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7366fda commit 7d4441dCopy full SHA for 7d4441d
regression/cbmc-java/lambda3/LambdaTest/Lamb1.class
164 Bytes
regression/cbmc-java/lambda3/LambdaTest/Test.class
1.41 KB
regression/cbmc-java/lambda3/LambdaTest/Test.java
@@ -0,0 +1,16 @@
1
+package LambdaTest;
2
+
3
+interface Lamb1 {
4
+ public Integer lambFunc1(Integer x);
5
+}
6
7
+class Test {
8
9
+ public static Integer recvLambda(Integer y, Integer z) {
10
+ Lamb1 lmb1 = (x) -> x = y + z; // Initializing in a lambda statement
11
+ if (lmb1 != null && z != null) {
12
+ return lmb1.lambFunc1(y);
13
+ }
14
+ return lmb1.lambFunc1(z);
15
16
regression/cbmc-java/lambda3/test.desc
@@ -0,0 +1,8 @@
+CORE
+LambdaTest/Test.class
+--show-symbol-table --function LambdaTest.Test.recvLambda
+^EXIT=0$
+^SIGNAL=0$
+--
+This is to verify that parsing lambdas in a package does not crash.
0 commit comments