From d7f7bad89effe42affea9fd78c28cfe5eaa542ae Mon Sep 17 00:00:00 2001 From: kornilova-l Date: Mon, 2 Jul 2018 11:46:18 +0400 Subject: [PATCH] Do not use getter for field of type CArray --- .../scala/org/scalanative/bindgen/samples/StructTests.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/samples/src/test/scala/org/scalanative/bindgen/samples/StructTests.scala b/tests/samples/src/test/scala/org/scalanative/bindgen/samples/StructTests.scala index 2907318..fa9f336 100644 --- a/tests/samples/src/test/scala/org/scalanative/bindgen/samples/StructTests.scala +++ b/tests/samples/src/test/scala/org/scalanative/bindgen/samples/StructTests.scala @@ -28,9 +28,7 @@ object StructTests extends TestSuite { val structWithAnonymousStruct = struct_structWithAnonymousStruct() val array: Ptr[CArray[Byte, Nat._8]] = anonymousStruct.cast[Ptr[CArray[Byte, Nat._8]]] - !structWithAnonymousStruct._2 = !array // works - // structWithAnonymousStruct.anonymousStruct_=(!array) // fixme: fails - // val s = structWithAnonymousStruct.anonymousStruct // fixme: fails + !structWithAnonymousStruct._2 = !array assert('a' == Struct.getCharFromAnonymousStruct(structWithAnonymousStruct)) assert(42 == Struct.getIntFromAnonymousStruct(structWithAnonymousStruct))