mirror of
https://github.com/dart-lang/sdk
synced 2024-09-19 15:01:29 +00:00
4ba4fd3f1d
Moves the Array forwarding constructors and _ArraySize class out of the patch files so that the analyzer can reason about them. (The analyzer does not include patch files, because it does not know whether it's analyzing for VM or JS backend.) Closes: https://github.com/dart-lang/sdk/issues/45507 Change-Id: Ia0eb4bbca40b906a1e636714f53c5c73dcfc3cad Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193403 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Daco Harkes <dacoharkes@google.com>
19 lines
464 B
Dart
19 lines
464 B
Dart
// 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.
|
|
|
|
import "dart:ffi";
|
|
|
|
import "package:expect/expect.dart";
|
|
|
|
const EIGHT = 8;
|
|
|
|
class Struct8BytesInlineArrayInt extends Struct {
|
|
@Array(EIGHT)
|
|
external Array<Uint8> a0;
|
|
}
|
|
|
|
void main() {
|
|
Expect.equals(8, sizeOf<Struct8BytesInlineArrayInt>());
|
|
}
|