dart-sdk/tests/ffi_2/regress_44986_test.dart

18 lines
371 B
Dart
Raw Normal View History

// Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import "dart:ffi";
class S2 extends Struct {
Pointer<Int8> notEmpty;
Null s; //# 01: compile-time error
}
void main() {
S2 s2;
}