This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathffi_tests_output.txt
1341 lines (1300 loc) · 83.4 KB
/
ffi_tests_output.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Compiling tests/ffi/abi_specific_int_incomplete_aot_test.dart
Error: error: AbiSpecificInteger 'Incomplete' is missing mapping for 'macos_arm64'.
Compile Failed: tests/ffi/abi_specific_int_incomplete_aot_test.dart
Compiling tests/ffi/abi_specific_int_incomplete_jit_test.dart
Error: error: AbiSpecificInteger 'Incomplete' is missing mapping for 'macos_arm64'.
Compile Failed: tests/ffi/abi_specific_int_incomplete_jit_test.dart
Compiling tests/ffi/abi_specific_int_test.dart
Running tests/ffi/abi_specific_int_test.dart
Passed: tests/ffi/abi_specific_int_test.dart
Compiling tests/ffi/abi_test.dart
Running tests/ffi/abi_test.dart
Unhandled exception:
Expect.equals(expected: <macos_simarm64>, actual: <macos_arm64>) fails.
#0 Expect._fail (package:expect/expect.dart:696)
#1 Expect.equals (package:expect/expect.dart:117)
#2 testPlatformVersionCompatibility (file:///Users/kmillikin/dart-sdk/sdk/tests/ffi/abi_test.dart:23)
#3 main (file:///Users/kmillikin/dart-sdk/sdk/tests/ffi/abi_test.dart:12)
#4 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:296)
#5 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189)
Failed: tests/ffi/abi_test.dart
Compiling tests/ffi/aliasing_test.dart
Running tests/ffi/aliasing_test.dart
Passed: tests/ffi/aliasing_test.dart
Compiling tests/ffi/allocator_test.dart
Running tests/ffi/allocator_test.dart
Passed: tests/ffi/allocator_test.dart
Compiling tests/ffi/bool_test.dart
Running tests/ffi/bool_test.dart
Passed: tests/ffi/bool_test.dart
Compiling tests/ffi/c_types_test.dart
Running tests/ffi/c_types_test.dart
Passed: tests/ffi/c_types_test.dart
Compiling tests/ffi/calloc_test.dart
Running tests/ffi/calloc_test.dart
Passed: tests/ffi/calloc_test.dart
Compiling tests/ffi/data_not_asan_test.dart
Running tests/ffi/data_not_asan_test.dart
Passed: tests/ffi/data_not_asan_test.dart
Compiling tests/ffi/data_test.dart
Running tests/ffi/data_test.dart
Passed: tests/ffi/data_test.dart
Compiling tests/ffi/dylib_isolates_test.dart
Running tests/ffi/dylib_isolates_test.dart
Passed: tests/ffi/dylib_isolates_test.dart
Compiling tests/ffi/expando_test.dart
Running tests/ffi/expando_test.dart
Passed: tests/ffi/expando_test.dart
Compiling tests/ffi/extension_methods_test.dart
Running tests/ffi/extension_methods_test.dart
Passed: tests/ffi/extension_methods_test.dart
Compiling tests/ffi/external_typed_data_test.dart
Running tests/ffi/external_typed_data_test.dart
Passed: tests/ffi/external_typed_data_test.dart
Compiling tests/ffi/ffi_callback_unique_test.dart
Running tests/ffi/ffi_callback_unique_test.dart
Passed: tests/ffi/ffi_callback_unique_test.dart
Compiling tests/ffi/ffi_native_test.dart
Running tests/ffi/ffi_native_test.dart
Passed: tests/ffi/ffi_native_test.dart
Compiling tests/ffi/finalizer_external_size_accounting_test.dart
Running tests/ffi/finalizer_external_size_accounting_test.dart
Passed: tests/ffi/finalizer_external_size_accounting_test.dart
Compiling tests/ffi/function_callbacks_many_test.dart
Running tests/ffi/function_callbacks_many_test.dart
Passed: tests/ffi/function_callbacks_many_test.dart
Compiling tests/ffi/function_callbacks_structs_by_value_generated_test.dart
Running tests/ffi/function_callbacks_structs_by_value_generated_test.dart
Passed: tests/ffi/function_callbacks_structs_by_value_generated_test.dart
Compiling tests/ffi/function_callbacks_structs_by_value_test.dart
Running tests/ffi/function_callbacks_structs_by_value_test.dart
Passed: tests/ffi/function_callbacks_structs_by_value_test.dart
Compiling tests/ffi/function_callbacks_test.dart
Running tests/ffi/function_callbacks_test.dart
Passed: tests/ffi/function_callbacks_test.dart
Compiling tests/ffi/function_callbacks_varargs_generated_test.dart
Running tests/ffi/function_callbacks_varargs_generated_test.dart
Passed: tests/ffi/function_callbacks_varargs_generated_test.dart
Compiling tests/ffi/function_callbacks_very_many_test.dart
Running tests/ffi/function_callbacks_very_many_test.dart
Passed: tests/ffi/function_callbacks_very_many_test.dart
Compiling tests/ffi/function_structs_by_value_generated_args_leaf_test.dart
Running tests/ffi/function_structs_by_value_generated_args_leaf_test.dart
Passed: tests/ffi/function_structs_by_value_generated_args_leaf_test.dart
Compiling tests/ffi/function_structs_by_value_generated_args_native_leaf_test.dart
Running tests/ffi/function_structs_by_value_generated_args_native_leaf_test.dart
Passed: tests/ffi/function_structs_by_value_generated_args_native_leaf_test.dart
Compiling tests/ffi/function_structs_by_value_generated_args_native_test.dart
Running tests/ffi/function_structs_by_value_generated_args_native_test.dart
Passed: tests/ffi/function_structs_by_value_generated_args_native_test.dart
Compiling tests/ffi/function_structs_by_value_generated_args_test.dart
Running tests/ffi/function_structs_by_value_generated_args_test.dart
Passed: tests/ffi/function_structs_by_value_generated_args_test.dart
Compiling tests/ffi/function_structs_by_value_generated_ret_arg_leaf_test.dart
Running tests/ffi/function_structs_by_value_generated_ret_arg_leaf_test.dart
Passed: tests/ffi/function_structs_by_value_generated_ret_arg_leaf_test.dart
Compiling tests/ffi/function_structs_by_value_generated_ret_arg_native_leaf_test.dart
Running tests/ffi/function_structs_by_value_generated_ret_arg_native_leaf_test.dart
Passed: tests/ffi/function_structs_by_value_generated_ret_arg_native_leaf_test.dart
Compiling tests/ffi/function_structs_by_value_generated_ret_arg_native_test.dart
Running tests/ffi/function_structs_by_value_generated_ret_arg_native_test.dart
Passed: tests/ffi/function_structs_by_value_generated_ret_arg_native_test.dart
Compiling tests/ffi/function_structs_by_value_generated_ret_arg_test.dart
Running tests/ffi/function_structs_by_value_generated_ret_arg_test.dart
Passed: tests/ffi/function_structs_by_value_generated_ret_arg_test.dart
Compiling tests/ffi/function_structs_by_value_generated_ret_leaf_test.dart
Running tests/ffi/function_structs_by_value_generated_ret_leaf_test.dart
Passed: tests/ffi/function_structs_by_value_generated_ret_leaf_test.dart
Compiling tests/ffi/function_structs_by_value_generated_ret_native_leaf_test.dart
Running tests/ffi/function_structs_by_value_generated_ret_native_leaf_test.dart
Passed: tests/ffi/function_structs_by_value_generated_ret_native_leaf_test.dart
Compiling tests/ffi/function_structs_by_value_generated_ret_native_test.dart
Running tests/ffi/function_structs_by_value_generated_ret_native_test.dart
Passed: tests/ffi/function_structs_by_value_generated_ret_native_test.dart
Compiling tests/ffi/function_structs_by_value_generated_ret_test.dart
Running tests/ffi/function_structs_by_value_generated_ret_test.dart
Passed: tests/ffi/function_structs_by_value_generated_ret_test.dart
Compiling tests/ffi/function_structs_test.dart
Running tests/ffi/function_structs_test.dart
Passed: tests/ffi/function_structs_test.dart
Compiling tests/ffi/function_test.dart
Running tests/ffi/function_test.dart
Passed: tests/ffi/function_test.dart
Compiling tests/ffi/function_varargs_generated_leaf_test.dart
Running tests/ffi/function_varargs_generated_leaf_test.dart
Passed: tests/ffi/function_varargs_generated_leaf_test.dart
Compiling tests/ffi/function_varargs_generated_native_leaf_test.dart
Running tests/ffi/function_varargs_generated_native_leaf_test.dart
Passed: tests/ffi/function_varargs_generated_native_leaf_test.dart
Compiling tests/ffi/function_varargs_generated_native_test.dart
Running tests/ffi/function_varargs_generated_native_test.dart
Passed: tests/ffi/function_varargs_generated_native_test.dart
Compiling tests/ffi/function_varargs_generated_test.dart
Running tests/ffi/function_varargs_generated_test.dart
Passed: tests/ffi/function_varargs_generated_test.dart
Compiling tests/ffi/function_varargs_name_test.dart
Running tests/ffi/function_varargs_name_test.dart
Passed: tests/ffi/function_varargs_name_test.dart
Compiling tests/ffi/function_varargs_test.dart
Running tests/ffi/function_varargs_test.dart
Passed: tests/ffi/function_varargs_test.dart
Compiling tests/ffi/function_very_many_test.dart
Running tests/ffi/function_very_many_test.dart
Passed: tests/ffi/function_very_many_test.dart
Compiling tests/ffi/hardfp_test.dart
Running tests/ffi/hardfp_test.dart
Passed: tests/ffi/hardfp_test.dart
Compiling tests/ffi/has_symbol_test.dart
Running tests/ffi/has_symbol_test.dart
Passed: tests/ffi/has_symbol_test.dart
Compiling tests/ffi/inline_array_multi_dimensional_test.dart
Running tests/ffi/inline_array_multi_dimensional_test.dart
Passed: tests/ffi/inline_array_multi_dimensional_test.dart
Compiling tests/ffi/inline_array_test.dart
Running tests/ffi/inline_array_test.dart
Passed: tests/ffi/inline_array_test.dart
Compiling tests/ffi/native_effect_test.dart
Running tests/ffi/native_effect_test.dart
Passed: tests/ffi/native_effect_test.dart
Compiling tests/ffi/negative_function_test.dart
Running tests/ffi/negative_function_test.dart
Passed: tests/ffi/negative_function_test.dart
Compiling tests/ffi/regress_37254_test.dart
Running tests/ffi/regress_37254_test.dart
Passed: tests/ffi/regress_37254_test.dart
Compiling tests/ffi/regress_39044_test.dart
Running tests/ffi/regress_39044_test.dart
Passed: tests/ffi/regress_39044_test.dart
Compiling tests/ffi/regress_39063_test.dart
Running tests/ffi/regress_39063_test.dart
Passed: tests/ffi/regress_39063_test.dart
Compiling tests/ffi/regress_39885_test.dart
Running tests/ffi/regress_39885_test.dart
Passed: tests/ffi/regress_39885_test.dart
Compiling tests/ffi/regress_40537_test.dart
Running tests/ffi/regress_40537_test.dart
Passed: tests/ffi/regress_40537_test.dart
Compiling tests/ffi/regress_43016_test.dart
Running tests/ffi/regress_43016_test.dart
Passed: tests/ffi/regress_43016_test.dart
Compiling tests/ffi/regress_43693_test.dart
Running tests/ffi/regress_43693_test.dart
Passed: tests/ffi/regress_43693_test.dart
Compiling tests/ffi/regress_44985_test.dart
../../tests/ffi/regress_44985_test.dart:10:20: Error: Field 's' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
external Struct? s; //# 01: compile-time error
^
Compile Failed: tests/ffi/regress_44985_test.dart
Compiling tests/ffi/regress_44986_test.dart
../../tests/ffi/regress_44986_test.dart:10:17: Error: Field 's' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
external Null s; //# 01: compile-time error
^
Compile Failed: tests/ffi/regress_44986_test.dart
Compiling tests/ffi/regress_45189_test.dart
Running tests/ffi/regress_45189_test.dart
Passed: tests/ffi/regress_45189_test.dart
Compiling tests/ffi/regress_45198_test.dart
Running tests/ffi/regress_45198_test.dart
Passed: tests/ffi/regress_45198_test.dart
Compiling tests/ffi/regress_45507_test.dart
Running tests/ffi/regress_45507_test.dart
Passed: tests/ffi/regress_45507_test.dart
Compiling tests/ffi/regress_45988_test.dart
Running tests/ffi/regress_45988_test.dart
Passed: tests/ffi/regress_45988_test.dart
Compiling tests/ffi/regress_46004_test.dart
Running tests/ffi/regress_46004_test.dart
Passed: tests/ffi/regress_46004_test.dart
Compiling tests/ffi/regress_46085_test.dart
../../tests/ffi/regress_46085_test.dart:11:25: Error: Field 'a0' must have an 'Array' annotation that matches the dimensions.
external Array<Int16> a0; //# 01: compile-time error
^
../../tests/ffi/regress_46085_test.dart:14:32: Error: Field 'a1' must have an 'Array' annotation that matches the dimensions.
external Array<Array<Int16>> a1; //# 02: compile-time error
^
Compile Failed: tests/ffi/regress_46085_test.dart
Compiling tests/ffi/regress_46127_test.dart
Running tests/ffi/regress_46127_test.dart
Passed: tests/ffi/regress_46127_test.dart
Compiling tests/ffi/regress_47594_test.dart
Running tests/ffi/regress_47594_test.dart
Passed: tests/ffi/regress_47594_test.dart
Compiling tests/ffi/regress_47673_2_test.dart
../../tests/ffi/regress_47673_2_test.dart:15:18: Error: Type 'Unknown' not found.
external Array<Unknown> b; //# 1: compile-time error
^^^^^^^
../../tests/ffi/regress_47673_2_test.dart:15:18: Error: 'Unknown' isn't a type.
external Array<Unknown> b; //# 1: compile-time error
^^^^^^^
../../tests/ffi/regress_47673_2_test.dart:15:27: Error: Expected type 'Array<invalid-type>' to be a valid and instantiated subtype of 'NativeType'.
- 'Array' is from 'dart:ffi'.
external Array<Unknown> b; //# 1: compile-time error
^
Compile Failed: tests/ffi/regress_47673_2_test.dart
Compiling tests/ffi/regress_47673_test.dart
Running tests/ffi/regress_47673_test.dart
Passed: tests/ffi/regress_47673_test.dart
Compiling tests/ffi/regress_49402_test.dart
Running tests/ffi/regress_49402_test.dart
Passed: tests/ffi/regress_49402_test.dart
Compiling tests/ffi/regress_49684_test.dart
Running tests/ffi/regress_49684_test.dart
Passed: tests/ffi/regress_49684_test.dart
Compiling tests/ffi/regress_51041_test.dart
../../tests/ffi/regress_51041_test.dart:13:7: Error: Field 'x' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
x;
^
Compile Failed: tests/ffi/regress_51041_test.dart
Compiling tests/ffi/regress_51315_test.dart
Running tests/ffi/regress_51315_test.dart
Passed: tests/ffi/regress_51315_test.dart
Compiling tests/ffi/regress_51321_test.dart
Running tests/ffi/regress_51321_test.dart
Passed: tests/ffi/regress_51321_test.dart
Compiling tests/ffi/regress_51504_test.dart
Running tests/ffi/regress_51504_test.dart
Passed: tests/ffi/regress_51504_test.dart
Compiling tests/ffi/regress_51538_2_test.dart
Running tests/ffi/regress_51538_2_test.dart
Passed: tests/ffi/regress_51538_2_test.dart
Compiling tests/ffi/regress_51538_3_test.dart
Running tests/ffi/regress_51538_3_test.dart
Passed: tests/ffi/regress_51538_3_test.dart
Compiling tests/ffi/regress_51538_test.dart
Running tests/ffi/regress_51538_test.dart
Passed: tests/ffi/regress_51538_test.dart
Compiling tests/ffi/regress_51913_test.dart
../../tests/ffi/regress_51913_test.dart:8:2: Error: Expected type 'NativeFunction<dynamic>' to be a valid and instantiated subtype of 'NativeType'.
- 'NativeFunction' is from 'dart:ffi'.
@Native() //# 1: compile-time error
^
Compile Failed: tests/ffi/regress_51913_test.dart
Compiling tests/ffi/regress_b_261224444_test.dart
Running tests/ffi/regress_b_261224444_test.dart
Passed: tests/ffi/regress_b_261224444_test.dart
Compiling tests/ffi/regress_flutter79441_test.dart
Running tests/ffi/regress_flutter79441_test.dart
Passed: tests/ffi/regress_flutter79441_test.dart
Compiling tests/ffi/regress_flutter97301_test.dart
Running tests/ffi/regress_flutter97301_test.dart
Passed: tests/ffi/regress_flutter97301_test.dart
Compiling tests/ffi/regress_jump_to_frame_test.dart
Running tests/ffi/regress_jump_to_frame_test.dart
===== CRASH =====
si_signo=Segmentation fault: 11(11), si_code=2, si_addr=0x10
version=3.1.0 (stable) (Fri Sep 29 18:05:22 2023 -0500) on "macos_simarm64"
pid=48890, thread=11011, isolate_group=main(0x13080b000), isolate=main(0x130817600)
os=macos, arch=arm64, comp=no, sim=yes
isolate_instructions=103b77180, vm_instructions=103b6c000
fp=140107550, sp=140107440, pc=102b775e8
Stack dump aborted because GetAndValidateThreadStackBounds failed.
pc 0x0000000102b775e8 fp 0x0000000140107550 dart::StackResource::previous() const+0xc
Failed: tests/ffi/regress_jump_to_frame_test.dart
Compiling tests/ffi/sizeof_test.dart
Running tests/ffi/sizeof_test.dart
Passed: tests/ffi/sizeof_test.dart
Compiling tests/ffi/snapshot_test.dart
Running tests/ffi/snapshot_test.dart
Passed: tests/ffi/snapshot_test.dart
Compiling tests/ffi/stacktrace_regress_37910_test.dart
Running tests/ffi/stacktrace_regress_37910_test.dart
Passed: tests/ffi/stacktrace_regress_37910_test.dart
Compiling tests/ffi/structs_nested_test.dart
Running tests/ffi/structs_nested_test.dart
Passed: tests/ffi/structs_nested_test.dart
Compiling tests/ffi/structs_nnbd_workaround_test.dart
Running tests/ffi/structs_nnbd_workaround_test.dart
Passed: tests/ffi/structs_nnbd_workaround_test.dart
Compiling tests/ffi/structs_packed_test.dart
Running tests/ffi/structs_packed_test.dart
Passed: tests/ffi/structs_packed_test.dart
Compiling tests/ffi/structs_test.dart
Running tests/ffi/structs_test.dart
Passed: tests/ffi/structs_test.dart
Compiling tests/ffi/unaligned_test.dart
Running tests/ffi/unaligned_test.dart
Passed: tests/ffi/unaligned_test.dart
Compiling tests/ffi/variance_function_test.dart
Running tests/ffi/variance_function_test.dart
Passed: tests/ffi/variance_function_test.dart
Compiling tests/ffi/vmspecific_dynamic_library_test.dart
Running tests/ffi/vmspecific_dynamic_library_test.dart
Passed: tests/ffi/vmspecific_dynamic_library_test.dart
Compiling tests/ffi/vmspecific_enable_ffi_test.dart
Running tests/ffi/vmspecific_enable_ffi_test.dart
Passed: tests/ffi/vmspecific_enable_ffi_test.dart
Compiling tests/ffi/vmspecific_ffi_native_test.dart
Running tests/ffi/vmspecific_ffi_native_test.dart
Passed: tests/ffi/vmspecific_ffi_native_test.dart
Compiling tests/ffi/vmspecific_function_callbacks_exit_test.dart
Running tests/ffi/vmspecific_function_callbacks_exit_test.dart
Passed: tests/ffi/vmspecific_function_callbacks_exit_test.dart
Compiling tests/ffi/vmspecific_function_callbacks_negative_test.dart
../../tests/ffi/vmspecific_function_callbacks_negative_test.dart:15:43: Error: Undefined name 'returnVoid'.
Pointer.fromFunction<Double Function()>(returnVoid, null); //# 59: compile-time error
^^^^^^^^^^
../../tests/ffi/vmspecific_function_callbacks_negative_test.dart:16:41: Error: Undefined name 'returnVoid'.
Pointer.fromFunction<Void Function()>(returnVoid, 0); //# 60: compile-time error
^^^^^^^^^^
../../tests/ffi/vmspecific_function_callbacks_negative_test.dart:15:43: Error: fromFunction expects a static function as parameter. dart:ffi only supports calling static Dart functions from native code. Closures and tear-offs are not supported because they can capture context.
Pointer.fromFunction<Double Function()>(returnVoid, null); //# 59: compile-time error
^
../../tests/ffi/vmspecific_function_callbacks_negative_test.dart:16:41: Error: fromFunction expects a static function as parameter. dart:ffi only supports calling static Dart functions from native code. Closures and tear-offs are not supported because they can capture context.
Pointer.fromFunction<Void Function()>(returnVoid, 0); //# 60: compile-time error
^
../../tests/ffi/vmspecific_function_callbacks_negative_test.dart:17:66: Error: Expected 'String' to be a subtype of 'double'.
Pointer.fromFunction<Double Function()>(testExceptionalReturn, "abc"); //# 61: compile-time error
^
../../tests/ffi/vmspecific_function_callbacks_negative_test.dart:18:66: Error: Expected 'int' to be a subtype of 'double'.
Pointer.fromFunction<Double Function()>(testExceptionalReturn, 0); //# 62: compile-time error
^
../../tests/ffi/vmspecific_function_callbacks_negative_test.dart:19:11: Error: Expected an exceptional return value for a native callback returning 'double'.
Pointer.fromFunction<Double Function()>(testExceptionalReturn); //# 63: compile-time error
^
Compile Failed: tests/ffi/vmspecific_function_callbacks_negative_test.dart
Compiling tests/ffi/vmspecific_function_callbacks_test.dart
Running tests/ffi/vmspecific_function_callbacks_test.dart
Passed: tests/ffi/vmspecific_function_callbacks_test.dart
Compiling tests/ffi/vmspecific_function_gc_test.dart
Running tests/ffi/vmspecific_function_gc_test.dart
Simulator hit Unimplemented instruction: at 0x102c25b7c, last_pc=0x102dcfb9c
0x102c25b7c f0003548 unknown
sim> ../../runtime/vm/simulator_arm64.cc: 488: error: ReadLine failed
version=3.1.0 (stable) (Fri Sep 29 18:05:22 2023 -0500) on "macos_simarm64"
pid=49039, thread=11011, isolate_group=main(0x143816600), isolate=main(0x14381be00)
os=macos, arch=arm64, comp=no, sim=yes
isolate_instructions=103e0b180, vm_instructions=103e00000
fp=16dc1cc60, sp=16dc1cc38, pc=102d565fc
pc 0x0000000102d565fc fp 0x000000016dc1cc60 dart::Profiler::DumpStackTrace(bool)+0x28
pc 0x0000000102d56564 fp 0x000000016dc1ccb0 dart::Profiler::DumpStackTrace(void*)+0x30
pc 0x000000010314dfc8 fp 0x000000016dc1ccd0 Dart_DumpNativeStackTrace+0x18
pc 0x00000001029b7b6c fp 0x000000016dc1cd00 dart::Assert::Fail(char const*, ...) const+0x40
pc 0x0000000102dfb534 fp 0x000000016dc1d160 dart::SimulatorDebugger::Debug()+0x14c
pc 0x0000000102dfb3dc fp 0x000000016dc1d1a0 dart::SimulatorDebugger::Stop(dart::Instr*, char const*)+0x40
pc 0x0000000102dfee6c fp 0x000000016dc1d2b0 dart::Simulator::UnimplementedInstruction(dart::Instr*)+0x84
pc 0x0000000102e00aac fp 0x000000016dc1d320 dart::Simulator::DecodePCRel(dart::Instr*)+0xe4
pc 0x0000000102e00ba8 fp 0x000000016dc1d350 dart::Simulator::DecodeDPImmediate(dart::Instr*)+0xb8
pc 0x0000000102dfdeb4 fp 0x000000016dc1d390 dart::Simulator::InstructionDecode(dart::Instr*)+0xb8
pc 0x0000000102e0a53c fp 0x000000016dc1d450 dart::Simulator::Execute()+0xfc
pc 0x0000000102e29918 fp 0x000000016dc1d470 dart::SimulatorExecute(dart::Simulator*)+0x18
-- End of DumpStackTrace
../../runtime/vm/stack_frame.cc: 362: error: expected: code != Code::null()
Aborting reentrant request for stack trace.
Failed: tests/ffi/vmspecific_function_gc_test.dart
Compiling tests/ffi/vmspecific_function_test.dart
Running tests/ffi/vmspecific_function_test.dart
Passed: tests/ffi/vmspecific_function_test.dart
Compiling tests/ffi/vmspecific_handle_dynamically_linked_test.dart
Running tests/ffi/vmspecific_handle_dynamically_linked_test.dart
Passed: tests/ffi/vmspecific_handle_dynamically_linked_test.dart
Compiling tests/ffi/vmspecific_handle_test.dart
Running tests/ffi/vmspecific_handle_test.dart
testHandle
passObjectToC(Instance of 'SomeClass')
result = Instance of 'SomeClass'
testHandleWithInteger
passObjectToC(1337)
result = 1337
HandleReadFieldValue
testClosureCallback Pointer: address=0x1023e2af8
ClosureCallbackThroughHandle 0x1023e2af8 0x13813fd78
doClosureCallback
() => void
Closure: () => void from Function 'increaseCounter': static.
increaseCounter
ClosureCallbackThroughHandle 0x1023e2af8 0x13813fd78
doClosureCallback
() => void
Closure: () => void from Function 'increaseCounter': static.
increaseCounter
testReturnHandleInCallback
ReturnHandleInCallback 0x102422af8
returnHandleCallback returning Instance of 'SomeClass'
HandleReadFieldValue
Dart_PropagateError(field_value)
===== CRASH =====
si_signo=Segmentation fault: 11(11), si_code=2, si_addr=0x10
version=3.1.0 (stable) (Fri Sep 29 18:05:22 2023 -0500) on "macos_simarm64"
pid=49069, thread=15875, isolate_group=main(0x134823a00), isolate=main(0x13482f600)
os=macos, arch=arm64, comp=no, sim=yes
isolate_instructions=101afb180, vm_instructions=101af0000
fp=13813f520, sp=13813f410, pc=100af75e8
Stack dump aborted because GetAndValidateThreadStackBounds failed.
pc 0x0000000100af75e8 fp 0x000000013813f520 dart::StackResource::previous() const+0xc
Failed: tests/ffi/vmspecific_handle_test.dart
Compiling tests/ffi/vmspecific_highmem_32bit_test.dart
Running tests/ffi/vmspecific_highmem_32bit_test.dart
Passed: tests/ffi/vmspecific_highmem_32bit_test.dart
Compiling tests/ffi/vmspecific_leaf_call_test.dart
Running tests/ffi/vmspecific_leaf_call_test.dart
Passed: tests/ffi/vmspecific_leaf_call_test.dart
Compiling tests/ffi/vmspecific_native_finalizer_2_test.dart
Running tests/ffi/vmspecific_native_finalizer_2_test.dart
Passed: tests/ffi/vmspecific_native_finalizer_2_test.dart
Compiling tests/ffi/vmspecific_native_finalizer_isolate_groups_test.dart
Running tests/ffi/vmspecific_native_finalizer_isolate_groups_test.dart
Passed: tests/ffi/vmspecific_native_finalizer_isolate_groups_test.dart
Compiling tests/ffi/vmspecific_native_finalizer_isolates_test.dart
Running tests/ffi/vmspecific_native_finalizer_isolates_test.dart
Passed: tests/ffi/vmspecific_native_finalizer_isolates_test.dart
Compiling tests/ffi/vmspecific_native_finalizer_test.dart
Running tests/ffi/vmspecific_native_finalizer_test.dart
Passed: tests/ffi/vmspecific_native_finalizer_test.dart
Compiling tests/ffi/vmspecific_object_gc_test.dart
Running tests/ffi/vmspecific_object_gc_test.dart
Passed: tests/ffi/vmspecific_object_gc_test.dart
Compiling tests/ffi/vmspecific_regress_37100_test.dart
Running tests/ffi/vmspecific_regress_37100_test.dart
Passed: tests/ffi/vmspecific_regress_37100_test.dart
Compiling tests/ffi/vmspecific_regress_37511_callbacks_test.dart
Running tests/ffi/vmspecific_regress_37511_callbacks_test.dart
Passed: tests/ffi/vmspecific_regress_37511_callbacks_test.dart
Compiling tests/ffi/vmspecific_regress_37511_test.dart
Running tests/ffi/vmspecific_regress_37511_test.dart
Passed: tests/ffi/vmspecific_regress_37511_test.dart
Compiling tests/ffi/vmspecific_regress_37780_test.dart
Running tests/ffi/vmspecific_regress_37780_test.dart
Passed: tests/ffi/vmspecific_regress_37780_test.dart
Compiling tests/ffi/vmspecific_regress_38993_test.dart
../../tests/ffi/vmspecific_regress_38993_test.dart:10:11: Error: Field 'x' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
dynamic x; //# 1: compile-time error
^
Compile Failed: tests/ffi/vmspecific_regress_38993_test.dart
Compiling tests/ffi/vmspecific_regress_51794_test.dart
Running tests/ffi/vmspecific_regress_51794_test.dart
Passed: tests/ffi/vmspecific_regress_51794_test.dart
Compiling tests/ffi/vmspecific_send_port_id_test.dart
Running tests/ffi/vmspecific_send_port_id_test.dart
Passed: tests/ffi/vmspecific_send_port_id_test.dart
Compiling tests/ffi/vmspecific_static_checks_ffinative_test.dart
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:81:10: Error: Can't have modifier 'static' here.
Try removing 'static'.
external static int badOptParam(); //# 12: compile-time error
^^^^^^
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:84:33: Error: Expected an identifier, but got '}'.
Try inserting an identifier before '}'.
@FfiNative<Void Function({Double})>('doesntmatter') //# 13: compile-time error
^
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:85:10: Error: Can't have modifier 'static' here.
Try removing 'static'.
external static int badNamedParam(); //# 13: compile-time error
^^^^^^
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:26:4: Error: Unexpected number of FfiNative annotation parameters. Expected 2 but has 1. FfiNative instance method annotation must have receiver as first argument.
@FfiNative<Void Function(IntPtr)>('doesntmatter') //# 03: compile-time error
^
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:31:4: Error: Only classes extending NativeFieldWrapperClass1 can be passed as Pointer.
@FfiNative<Void Function(Pointer<Void>, IntPtr)>(//# 04: compile-time error
^
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:38:4: Error: Unexpected number of FfiNative annotation parameters. Expected 2 but has 1. FfiNative instance method annotation must have receiver as first argument.
@FfiNative<Void Function(IntPtr)>('doesntmatter') //# 05: compile-time error
^
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:43:17: Error: Expected type 'void Function(Pointer<Void>, int, int, Object)' to be 'Object Function(Pointer<Void>, int, int, Object)', which is the Dart type corresponding to 'NativeFunction<Handle Function(Pointer<Void>, Uint32, Uint32, Handle)>'.
- 'Pointer' is from 'dart:ffi'.
- 'Void' is from 'dart:ffi'.
- 'Object' is from 'dart:core'.
- 'NativeFunction' is from 'dart:ffi'.
- 'Handle' is from 'dart:ffi'.
- 'Uint32' is from 'dart:ffi'.
external void toImageSync(int width, int height, Object outImage); //# 49471: compile-time error
^
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:62:4: Error: Only classes extending NativeFieldWrapperClass1 can be passed as Pointer.
@FfiNative<IntPtr Function(Pointer<Void>, Handle)>(//# 09: compile-time error
^
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:68:4: Error: Only classes extending NativeFieldWrapperClass1 can be passed as Pointer.
@FfiNative<IntPtr Function(Handle, Pointer<Void>)>(//# 10: compile-time error
^
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:74:4: Error: Only classes extending NativeFieldWrapperClass1 can be passed as Pointer.
@FfiNative<IntPtr Function(Pointer<Void>)>(//# 11: compile-time error
^
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:17:17: Error: FFI leaf call must not have Handle return type.
external Object foo(); //# 01: compile-time error
^
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:22:15: Error: FFI leaf call must not have Handle argument types.
external void bar(Object); //# 02: compile-time error
^
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:47:2: Error: Unexpected number of FfiNative annotation parameters. Expected 1 but has 2.
@FfiNative<Handle Function(IntPtr, IntPtr)>(//# 06: compile-time error
^
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:52:2: Error: Unexpected number of FfiNative annotation parameters. Expected 2 but has 1.
@FfiNative<Handle Function(IntPtr)>('doesntmatter') //# 07: compile-time error
^
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:57:6: Error: FfiNative functions must be marked external.
void mustBeMarkedExternal() {} //# 08: compile-time error
^
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:80:2: Error: Expected type 'NativeFunction<Void Function([Double])>' to be a valid and instantiated subtype of 'NativeType'.
- 'NativeFunction' is from 'dart:ffi'.
- 'Void' is from 'dart:ffi'.
- 'Double' is from 'dart:ffi'.
@FfiNative<Void Function([Double])>('doesntmatter') //# 12: compile-time error
^
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:85:21: Error: Expected type 'int Function()' to be 'void Function()', which is the Dart type corresponding to 'NativeFunction<Void Function()>'.
- 'NativeFunction' is from 'dart:ffi'.
- 'Void' is from 'dart:ffi'.
external static int badNamedParam(); //# 13: compile-time error
^
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:88:14: Error: Expected type 'int Function(int)' to be 'int Function(double)', which is the Dart type corresponding to 'NativeFunction<IntPtr Function(Double)>'.
- 'NativeFunction' is from 'dart:ffi'.
- 'IntPtr' is from 'dart:ffi'.
- 'Double' is from 'dart:ffi'.
external int wrongFfiParameter(int v); //# 14: compile-time error
^
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:91:17: Error: Expected type 'double Function(int)' to be 'int Function(int)', which is the Dart type corresponding to 'NativeFunction<IntPtr Function(IntPtr)>'.
- 'NativeFunction' is from 'dart:ffi'.
- 'IntPtr' is from 'dart:ffi'.
external double wrongFfiReturnType(int v); //# 15: compile-time error
^
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:93:2: Error: Expected type 'NativeFunction<IntPtr Function(int)>' to be a valid and instantiated subtype of 'NativeType'.
- 'NativeFunction' is from 'dart:ffi'.
- 'IntPtr' is from 'dart:ffi'.
@FfiNative<IntPtr Function(int)>('doesntmatter') //# 16: compile-time error
^
../../tests/ffi/vmspecific_static_checks_ffinative_test.dart:96:2: Error: Expected type 'NativeFunction<double Function(IntPtr)>' to be a valid and instantiated subtype of 'NativeType'.
- 'NativeFunction' is from 'dart:ffi'.
- 'IntPtr' is from 'dart:ffi'.
@FfiNative<double Function(IntPtr)>('doesntmatter') //# 17: compile-time error
^
Compile Failed: tests/ffi/vmspecific_static_checks_ffinative_test.dart
Compiling tests/ffi/vmspecific_static_checks_test.dart
../../tests/ffi/vmspecific_static_checks_test.dart:581:13: Error: 'EmptyStruct' is already declared in this scope.
final class EmptyStruct extends Struct {} //# 1100: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:579:13: Context: Previous declaration of 'EmptyStruct'.
final class EmptyStruct extends Struct {} //# 1099: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:589:13: Error: 'EmptyStruct' is already declared in this scope.
final class EmptyStruct extends Struct {} //# 1101: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:581:13: Context: Previous declaration of 'EmptyStruct'.
final class EmptyStruct extends Struct {} //# 1100: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:597:13: Error: 'EmptyStruct' is already declared in this scope.
final class EmptyStruct extends Struct {} //# 1102: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:589:13: Context: Previous declaration of 'EmptyStruct'.
final class EmptyStruct extends Struct {} //# 1101: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:607:13: Error: 'EmptyStruct' is already declared in this scope.
final class EmptyStruct extends Struct {} //# 1103: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:597:13: Context: Previous declaration of 'EmptyStruct'.
final class EmptyStruct extends Struct {} //# 1102: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:616:13: Error: 'EmptyStruct' is already declared in this scope.
final class EmptyStruct extends Struct {} //# 1104: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:607:13: Context: Previous declaration of 'EmptyStruct'.
final class EmptyStruct extends Struct {} //# 1103: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:626:13: Error: 'EmptyStruct' is already declared in this scope.
final class EmptyStruct extends Struct {} //# 1105: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:616:13: Context: Previous declaration of 'EmptyStruct'.
final class EmptyStruct extends Struct {} //# 1104: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:635:13: Error: 'EmptyStruct' is already declared in this scope.
final class EmptyStruct extends Struct {} //# 1106: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:626:13: Context: Previous declaration of 'EmptyStruct'.
final class EmptyStruct extends Struct {} //# 1105: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:453:5: Error: Expected 0 type arguments.
Struct<TestStruct11<dynamic>> {} //# 60: compile-time error
^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:618:26: Error: 'EmptyStruct' isn't a type.
void _consumeEmptyStruct(EmptyStruct e) => //# 1104: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:618:26: Context: This isn't a type.
void _consumeEmptyStruct(EmptyStruct e) => //# 1104: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:628:1: Error: 'EmptyStruct' isn't a type.
EmptyStruct _returnEmptyStruct() => EmptyStruct(); //# 1105: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:628:1: Context: This isn't a type.
EmptyStruct _returnEmptyStruct() => EmptyStruct(); //# 1105: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:638:12: Error: 'EmptyStruct' isn't a type.
external EmptyStruct nestedEmptyStruct; //# 1106: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:638:12: Context: This isn't a type.
external EmptyStruct nestedEmptyStruct; //# 1106: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:400:7: Error: The type 'TestStruct3' must be 'base', 'final' or 'sealed' because the supertype 'TestStruct' is 'final'.
Try adding 'base', 'final', or 'sealed' to the type.
class TestStruct3 extends TestStruct {} //# 52: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:477:27: Error: The class 'NativeType' can't be extended outside of its library because it's a final class.
class ENativeType extends NativeType {} //# 90: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:479:21: Error: The class 'Int8' can't be extended outside of its library because it's a final class.
class EInt8 extends Int8 {} //# 91: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:481:22: Error: The class 'Int16' can't be extended outside of its library because it's a final class.
class EInt16 extends Int16 {} //# 92: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:483:22: Error: The class 'Int32' can't be extended outside of its library because it's a final class.
class EInt32 extends Int32 {} //# 93: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:485:22: Error: The class 'Int64' can't be extended outside of its library because it's a final class.
class EInt64 extends Int64 {} //# 94: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:487:22: Error: The class 'Uint8' can't be extended outside of its library because it's a final class.
class EUint8 extends Uint8 {} //# 95: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:489:23: Error: The class 'Uint16' can't be extended outside of its library because it's a final class.
class EUint16 extends Uint16 {} //# 96: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:491:23: Error: The class 'Uint32' can't be extended outside of its library because it's a final class.
class EUint32 extends Uint32 {} //# 97: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:493:23: Error: The class 'Uint64' can't be extended outside of its library because it's a final class.
class EUint64 extends Uint64 {} //# 98: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:495:23: Error: The class 'IntPtr' can't be extended outside of its library because it's a final class.
class EIntPtr extends IntPtr {} //# 99: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:497:22: Error: The class 'Float' can't be extended outside of its library because it's a final class.
class EFloat extends Float {} //# 910: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:499:23: Error: The class 'Double' can't be extended outside of its library because it's a final class.
class EDouble extends Double {} //# 911: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:501:21: Error: The class 'Void' can't be extended outside of its library because it's a final class.
class EVoid extends Void {} //# 912: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:503:31: Error: The class 'NativeFunction' can't be extended outside of its library because it's a final class.
class ENativeFunction extends NativeFunction {} //# 913: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:505:24: Error: The class 'Pointer' can't be extended outside of its library because it's a final class.
class EPointer extends Pointer {} //# 914: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:511:30: Error: The class 'NativeType' can't be implemented outside of its library because it's a final class.
class INativeType implements NativeType {} //# 80: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:513:24: Error: The class 'Int8' can't be implemented outside of its library because it's a final class.
class IInt8 implements Int8 {} //# 81: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:515:25: Error: The class 'Int16' can't be implemented outside of its library because it's a final class.
class IInt16 implements Int16 {} //# 82: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:517:25: Error: The class 'Int32' can't be implemented outside of its library because it's a final class.
class IInt32 implements Int32 {} //# 83: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:519:25: Error: The class 'Int64' can't be implemented outside of its library because it's a final class.
class IInt64 implements Int64 {} //# 84: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:521:25: Error: The class 'Uint8' can't be implemented outside of its library because it's a final class.
class IUint8 implements Uint8 {} //# 85: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:523:26: Error: The class 'Uint16' can't be implemented outside of its library because it's a final class.
class IUint16 implements Uint16 {} //# 86: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:525:26: Error: The class 'Uint32' can't be implemented outside of its library because it's a final class.
class IUint32 implements Uint32 {} //# 87: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:527:26: Error: The class 'Uint64' can't be implemented outside of its library because it's a final class.
class IUint64 implements Uint64 {} //# 88: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:529:26: Error: The class 'IntPtr' can't be implemented outside of its library because it's a final class.
class IIntPtr implements IntPtr {} //# 88: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:531:25: Error: The class 'Float' can't be implemented outside of its library because it's a final class.
class IFloat implements Float {} //# 810: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:533:26: Error: The class 'Double' can't be implemented outside of its library because it's a final class.
class IDouble implements Double {} //# 811: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:535:24: Error: The class 'Void' can't be implemented outside of its library because it's a final class.
class IVoid implements Void {} //# 812: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:539:9: Error: The class 'NativeFunction' can't be implemented outside of its library because it's a final class.
NativeFunction {} //# 813: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:541:27: Error: The class 'Pointer' can't be implemented outside of its library because it's a final class.
class IPointer implements Pointer {} //# 814: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:543:7: Error: The type 'IStruct' must be 'base', 'final' or 'sealed' because the supertype 'Struct' is 'base'.
Try adding 'base', 'final', or 'sealed' to the type.
class IStruct implements Struct {} //# 815: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:543:26: Error: The class 'Struct' can't be implemented outside of its library because it's a base class.
class IStruct implements Struct {} //# 815: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:545:7: Error: The type 'IOpaque' must be 'base', 'final' or 'sealed' because the supertype 'Opaque' is 'base'.
Try adding 'base', 'final', or 'sealed' to the type.
class IOpaque implements Opaque {} //# 816: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:545:26: Error: The class 'Opaque' can't be implemented outside of its library because it's a base class.
class IOpaque implements Opaque {} //# 816: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:860:7: Error: The type 'AbiSpecificInteger2' must be 'base', 'final' or 'sealed' because the supertype 'AbiSpecificInteger' is 'base'.
Try adding 'base', 'final', or 'sealed' to the type.
class AbiSpecificInteger2
^
../../tests/ffi/vmspecific_static_checks_test.dart:861:16: Error: The class 'AbiSpecificInteger' can't be implemented outside of its library because it's a base class.
implements AbiSpecificInteger //# 1903: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:866:7: Error: The type 'AbiSpecificInteger3' must be 'base', 'final' or 'sealed' because the supertype 'AbiSpecificInteger1' is 'final'.
Try adding 'base', 'final', or 'sealed' to the type.
class AbiSpecificInteger3
^
../../tests/ffi/vmspecific_static_checks_test.dart:872:7: Error: The type 'AbiSpecificInteger4' must be 'base', 'final' or 'sealed' because the supertype 'AbiSpecificInteger1' is 'final'.
Try adding 'base', 'final', or 'sealed' to the type.
class AbiSpecificInteger4
^
../../tests/ffi/vmspecific_static_checks_test.dart:873:16: Error: The class 'AbiSpecificInteger' can't be implemented outside of its library because it's a base class.
implements AbiSpecificInteger1 //# 1905: compile-time error
^
../../sdk/lib/ffi/abi_specific.dart:49:12: Context: The type 'AbiSpecificInteger1' is a subtype of 'AbiSpecificInteger', and 'AbiSpecificInteger' is defined here.
base class AbiSpecificInteger extends NativeType {
^
../../tests/ffi/vmspecific_static_checks_test.dart:541:7: Error: The non-abstract class 'IPointer' is missing implementations for these members:
- Pointer.address
- Pointer.cast
Try to either
- provide an implementation,
- inherit an implementation from a superclass or mixin,
- mark the class as abstract, or
- provide a 'noSuchMethod' implementation.
class IPointer implements Pointer {} //# 814: compile-time error
^^^^^^^^
../../sdk/lib/_internal/vm/lib/ffi_patch.dart:181:20: Context: 'Pointer.address' is defined here.
external int get address;
^^^^^^^
../../sdk/lib/_internal/vm/lib/ffi_patch.dart:187:14: Context: 'Pointer.cast' is defined here.
Pointer<U> cast<U extends NativeType>() => Pointer.fromAddress(address);
^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:872:7: Error: The non-abstract class 'AbiSpecificInteger4' is missing implementations for these members:
- AbiSpecificInteger1.a
- AbiSpecificInteger1.b
- AbiSpecificInteger1.b=
Try to either
- provide an implementation,
- inherit an implementation from a superclass or mixin,
- mark the class as abstract, or
- provide a 'noSuchMethod' implementation.
class AbiSpecificInteger4
^^^^^^^^^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:855:11: Context: 'AbiSpecificInteger1.a' is defined here.
int get a => 4; //# 1910: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:857:16: Context: 'AbiSpecificInteger1.b' is defined here.
external int b; //# 1911: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:857:16: Context: 'AbiSpecificInteger1.b=' is defined here.
external int b; //# 1911: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:419:4: Error: The class 'Void' is abstract and can't be instantiated.
@Void() //# 55: compile-time error
^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:427:4: Error: The class 'NativeType' is abstract and can't be instantiated.
@NativeType() //# 56: compile-time error
^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:458:4: Error: This can't be used as an annotation; an annotation should be a reference to a compile-time constant variable, or a call to a constant constructor.
@Pointer //# 61: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:573:4: Error: The class 'Handle' is abstract and can't be instantiated.
@Handle() //# 1002: compile-time error
^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:83:16: Error: The getter 'value' isn't defined for the class 'Pointer<NativeType>'.
- 'Pointer' is from 'dart:ffi'.
- 'NativeType' is from 'dart:ffi'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'value'.
result = p.value; //# 20: compile-time error
^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:99:16: Error: A value of type 'int' can't be assigned to a variable of type 'T?'.
result = p.value; //# 21: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:111:6: Error: The getter 'value' isn't defined for the class 'Pointer<Void>'.
- 'Pointer' is from 'dart:ffi'.
- 'Void' is from 'dart:ffi'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'value'.
p2.value; //# 22: compile-time error
^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:118:17: Error: The getter 'value' isn't defined for the class 'Pointer<NativeFunction<Int8 Function(Int8)>>'.
- 'Pointer' is from 'dart:ffi'.
- 'NativeFunction' is from 'dart:ffi'.
- 'Int8' is from 'dart:ffi'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'value'.
IntUnOp f = p.value; //# 23: compile-time error
^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:131:24: Error: A value of type 'Pointer<Int16>' can't be assigned to a variable of type 'Pointer<Int8>'.
- 'Pointer' is from 'dart:ffi'.
- 'Int16' is from 'dart:ffi'.
- 'Int8' is from 'dart:ffi'.
Pointer<Int8> p2 = p.value; //# 25: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:138:7: Error: The setter 'value' isn't defined for the class 'Pointer<NativeType>'.
- 'Pointer' is from 'dart:ffi'.
- 'NativeType' is from 'dart:ffi'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'value'.
p.value = 123; //# 26: compile-time error
^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:151:15: Error: A value of type 'T' can't be assigned to a variable of type 'int'.
p.value = arg; //# 27: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:162:6: Error: The setter 'value' isn't defined for the class 'Pointer<Void>'.
- 'Pointer' is from 'dart:ffi'.
- 'Void' is from 'dart:ffi'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'value'.
p2.value = 1234; //# 28: compile-time error
^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:170:5: Error: The setter 'value' isn't defined for the class 'Pointer<NativeFunction<Int8 Function(Int8)>>'.
- 'Pointer' is from 'dart:ffi'.
- 'NativeFunction' is from 'dart:ffi'.
- 'Int8' is from 'dart:ffi'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'value'.
p.value = f; //# 29: compile-time error
^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:185:13: Error: A value of type 'Pointer<Int8>' can't be assigned to a variable of type 'Pointer<Int16>'.
- 'Pointer' is from 'dart:ffi'.
- 'Int8' is from 'dart:ffi'.
- 'Int16' is from 'dart:ffi'.
p.value = pHelper; //# 40: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:215:16: Error: Non-nullable variable 'p' must be assigned before it can be used.
Function f = p.asFunction<IntUnOp>(); //# 13: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:585:21: Error: Can't use 'EmptyStruct' because it is declared more than once.
Void Function(EmptyStruct), //# 1100: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:586:21: Error: Can't use 'EmptyStruct' because it is declared more than once.
void Function(EmptyStruct)>("DoesNotExist"); //# 1100: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:593:7: Error: Can't use 'EmptyStruct' because it is declared more than once.
EmptyStruct Function(), //# 1101: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:594:7: Error: Can't use 'EmptyStruct' because it is declared more than once.
EmptyStruct Function()>("DoesNotExist"); //# 1101: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:602:29: Error: Can't use 'EmptyStruct' because it is declared more than once.
Void Function(EmptyStruct)>> //# 1102: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:604:36: Error: Can't use 'EmptyStruct' because it is declared more than once.
pointer.asFunction<void Function(EmptyStruct)>(); //# 1102: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:611:26: Error: Can't use 'EmptyStruct' because it is declared more than once.
NativeFunction<EmptyStruct Function()>> //# 1103: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:613:22: Error: Can't use 'EmptyStruct' because it is declared more than once.
pointer.asFunction<EmptyStruct Function()>(); //# 1103: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:618:26: Error: Can't use 'EmptyStruct' because it is declared more than once.
void _consumeEmptyStruct(EmptyStruct e) => //# 1104: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:622:38: Error: Can't use 'EmptyStruct' because it is declared more than once.
Pointer.fromFunction<Void Function(EmptyStruct)>(//# 1104: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:628:37: Error: Can't use 'EmptyStruct' because it is declared more than once.
EmptyStruct _returnEmptyStruct() => EmptyStruct(); //# 1105: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:631:24: Error: Can't use 'EmptyStruct' because it is declared more than once.
Pointer.fromFunction<EmptyStruct Function()>(//# 1105: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:638:12: Error: Can't use 'EmptyStruct' because it is declared more than once.
external EmptyStruct nestedEmptyStruct; //# 1106: compile-time error
^^^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:697:31: Error: The method 'elementAt' isn't defined for the class 'Pointer<T>'.
- 'Pointer' is from 'dart:ffi'.
Try correcting the name to the name of an existing method, or defining a method named 'elementAt'.
returnValue = returnValue.elementAt(1); //# 1310: compile-time error
^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:711:6: Error: The method 'elementAt' isn't defined for the class 'Pointer<NativeType>'.
- 'Pointer' is from 'dart:ffi'.
- 'NativeType' is from 'dart:ffi'.
Try correcting the name to the name of an existing method, or defining a method named 'elementAt'.
p2.elementAt(1); //# 1311: compile-time error
^^^^^^^^^
../../tests/ffi/vmspecific_static_checks_test.dart:505:7: Error: The superclass, 'Pointer', has no unnamed constructor that takes no arguments.
class EPointer extends Pointer {} //# 914: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:396:19: Error: Field 'y' requires exactly one annotation to declare its native type, which cannot be Void. dart:ffi Structs and Unions cannot have regular Dart fields.
external double y; //# 50: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:406:19: Error: Field 'z' requires exactly one annotation to declare its native type, which cannot be Void. dart:ffi Structs and Unions cannot have regular Dart fields.
external double z;
^
../../tests/ffi/vmspecific_static_checks_test.dart:412:19: Error: Expected type 'double' to be 'int', which is the Dart type corresponding to 'Int64'.
- 'Int64' is from 'dart:ffi'.
external double z; //# 54: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:420:19: Error: Field 'z' requires exactly one annotation to declare its native type, which cannot be Void. dart:ffi Structs and Unions cannot have regular Dart fields.
external double z; //# 55: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:428:19: Error: Field 'z' requires exactly one annotation to declare its native type, which cannot be Void. dart:ffi Structs and Unions cannot have regular Dart fields.
external double z; //# 56: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:436:10: Error: Field 'z' is a dart:ffi Pointer to a struct field and therefore cannot be initialized before constructor execution.
Mark the field as external to avoid having to initialize it.
double z = 10.0; //# 57: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:448:21: Error: Field 'z' is a dart:ffi Pointer to a struct field and therefore cannot be initialized before constructor execution.
Mark the field as external to avoid having to initialize it.
TestStruct9() : z = 0.0 {} //# 58: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:444:10: Error: Field 'z' is a dart:ffi Pointer to a struct field and therefore cannot be initialized before constructor execution.
Mark the field as external to avoid having to initialize it.
double z; //# 58: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:495:7: Error: Classes extending 'AbiSpecificInteger' must have exactly one 'AbiSpecificIntegerMapping' annotation specifying the mapping from ABI to a NativeType integer with a fixed size.
class EIntPtr extends IntPtr {} //# 99: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:495:7: Error: Classes extending 'AbiSpecificInteger' must have exactly one const constructor, no other members, and no type arguments.
class EIntPtr extends IntPtr {} //# 99: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:567:19: Error: Field 'handle' requires exactly one annotation to declare its native type, which cannot be Void. dart:ffi Structs and Unions cannot have regular Dart fields.
external Handle handle; //# 1001: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:574:19: Error: Field 'handle' requires exactly one annotation to declare its native type, which cannot be Void. dart:ffi Structs and Unions cannot have regular Dart fields.
external Object handle; //# 1002: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:638:24: Error: Field 'nestedEmptyStruct' requires exactly one annotation to declare its native type, which cannot be Void. dart:ffi Structs and Unions cannot have regular Dart fields.
external EmptyStruct nestedEmptyStruct; //# 1106: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:718:25: Error: Field 'a0' must have exactly one 'Array' annotation.
external Array<Uint8> a0;
^
../../tests/ffi/vmspecific_static_checks_test.dart:722:25: Error: Field 'a0' must have exactly one 'Array' annotation.
external Array<Uint8> a0; //# 1401: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:729:32: Error: Field 'a0' must have an 'Array' annotation that matches the dimensions.
external Array<Array<Uint8>> a0; //# 1402: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:736:39: Error: Field 'a0' must have an 'Array' annotation that matches the dimensions.
external Array<Array<Array<Uint8>>> a0; //# 1403: compile-time error
^
../../tests/ffi/vmspecific_static_checks_test.dart:743:32: Error: Field 'a0' must have an 'Array' annotation that matches the dimensions.