File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
unit/java_bytecode/java_bytecode_convert_method Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,23 @@ SCENARIO(
86
86
lambda_implementor_type_symbol.type );
87
87
88
88
REQUIRE (tmp_lambda_class_type.has_base (" java::SimpleLambda" ));
89
+
90
+ THEN (" The function in the class should call the lambda method" )
91
+ {
92
+ const irep_idt method_identifier =
93
+ id2string (tmp_class_identifier) + " .Execute:()V" ;
94
+ const symbolt &method_symbol =
95
+ require_symbol::require_symbol_exists (
96
+ symbol_table, method_identifier);
97
+
98
+ REQUIRE (method_symbol.is_function ());
99
+
100
+ const std::vector<codet> &assignments =
101
+ require_goto_statements::get_all_statements (method_symbol.value );
102
+
103
+ require_goto_statements::require_function_call (
104
+ assignments, " java::LocalLambdas.lambda$test$0:()V" );
105
+ }
89
106
}
90
107
}
91
108
}
You can’t perform that action at this time.
0 commit comments