mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
3a0a33f35f
This CL adds fields to `Struct`s which should not be empty or removes the structs. Issue: https://github.com/dart-lang/sdk/issues/44622 Issue: https://github.com/dart-lang/sdk/issues/43974 TEST=tests/ffi/vmspecific_static_checks_test.dart Change-Id: I4a684bd96e3ed16a3fd0dd17019aeabf64ef074a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/179182 Commit-Queue: Daco Harkes <dacoharkes@google.com> Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
15 lines
420 B
Dart
15 lines
420 B
Dart
// Copyright (c) 2019, 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.
|
|
//
|
|
// Tests a compile time error that should not crash the analyzer or CFE.
|
|
|
|
import "dart:ffi";
|
|
|
|
class C extends Struct {
|
|
dynamic x; //# 1: compile-time error
|
|
|
|
external Pointer notEmpty;
|
|
}
|
|
|
|
main() {}
|