Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / test_ffi_c_callback_extern_receiver.nit
index 477dfc1..5fc1a52 100644 (file)
@@ -22,18 +22,18 @@ module test_ffi_c_callback_extern_receiver
 #include <stdio.h>
 `}
 
-extern Test
+extern class Test
     new create_me is extern `{
         int* foobar = malloc(sizeof(int));
         *foobar = 12345;
         return foobar;
     `}
 
-    fun test_me is extern import Test.foo, NativeString.to_s `{
+    fun test_me is extern import Test.foo, CString.to_s `{
         int i;
         for(i = 0; i < 2000; ++i) {
             printf("%d\n", i);
-            Test_foo(recv, NativeString_to_s("asdf"));
+            Test_foo(self, CString_to_s("asdf"));
         }
     `}