File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
tests/samples/src/test/scala/org/scalanative/bindgen/samples Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,8 @@ object StructTests extends TestSuite {
27
27
! anonymousStruct._2 = 42
28
28
29
29
val structWithAnonymousStruct = struct_structWithAnonymousStruct()
30
- val array : Ptr [CArray [Byte , Nat ._8]] = anonymousStruct.cast[Ptr [CArray [Byte , Nat ._8]]]
31
- ! structWithAnonymousStruct._2 = ! array // works
32
- // structWithAnonymousStruct.anonymousStruct_=(!array) // fixme: fails
33
- // val s = structWithAnonymousStruct.anonymousStruct // fixme: fails
30
+ val array = anonymousStruct.cast[Ptr [CArray [Byte , Nat ._8]]]
31
+ ! structWithAnonymousStruct._2 = ! array
34
32
35
33
assert('a' == Struct .getCharFromAnonymousStruct(structWithAnonymousStruct))
36
34
assert(42 == Struct .getIntFromAnonymousStruct(structWithAnonymousStruct))
You can’t perform that action at this time.
0 commit comments