X-Git-Url: http://nitlanguage.org diff --git a/tests/test_ffi_c_more.nit b/tests/test_ffi_c_more.nit index e795227..7e9ec29 100644 --- a/tests/test_ffi_c_more.nit +++ b/tests/test_ffi_c_more.nit @@ -30,7 +30,7 @@ in "C" `{ } `} -extern A +extern class A new is extern `{ return malloc(1); `} new new_implicit `{ return malloc(1); `} new new_in_language is extern in "C" `{ return malloc(1); `} @@ -38,11 +38,11 @@ extern A fun m : Int is extern `{ return 10; `} - fun n : String is extern import NativeString::to_s `{ + fun n : String is extern import NativeString.to_s `{ return NativeString_to_s( "allo" ); `} - fun o ( str : String ) is extern import String::to_cstring `{ + fun o ( str : String ) is extern import String.to_cstring `{ f( String_to_cstring( str ) ); `} @@ -62,18 +62,18 @@ extern A fun inline_implicit : Int `{ return 7; `} end -extern B +extern class B super A end -extern C `{int*`} +extern class C `{int*`} end -extern D +extern class D super C end -extern E +extern class E super C end