[m-rev.] diff: fix test case failure in C# and Java grades
Julien Fischer
jfischer at opturion.com
Sat Jan 11 20:08:29 AEDT 2020
Branches: 20.01, master
-----------------------
Fix test case failure in C# and Java grades.
tests/hard_coded/stream_string_writer_types.m:
Add missing foreign_proc definitions for C# and Java.
Julien.
diff --git a/tests/hard_coded/stream_string_writer_types.m b/tests/hard_coded/stream_string_writer_types.m
index df7ad8e..e34f8af 100644
--- a/tests/hard_coded/stream_string_writer_types.m
+++ b/tests/hard_coded/stream_string_writer_types.m
@@ -81,3 +81,17 @@ write_type_ctor_of(X, !IO) :-
"
Ptr = 0;
").
+
+:- pragma foreign_proc("C#",
+ get_c_pointer = (Ptr::out),
+ [promise_pure, thread_safe],
+"
+ Ptr = null;
+").
+
+:- pragma foreign_proc("Java",
+ get_c_pointer = (Ptr::out),
+ [promise_pure, thread_safe],
+"
+ Ptr = null;
+").
More information about the reviews
mailing list