mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 15:01:30 +00:00
2d61150905
TEST=tests/ffi/regress_51913_test.dart Bug: https://github.com/dart-lang/sdk/issues/51913 Change-Id: I79746f3b3852f34d7e31b32260ce5abcb2d6801a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/293602 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Daco Harkes <dacoharkes@google.com>
13 lines
420 B
Dart
13 lines
420 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';
|
|
|
|
// Should have been `@Native<Void Function()>` or something.
|
|
@Native() //# 1: compile-time error
|
|
external void foo(); //# 1: compile-time error
|
|
|
|
void main() {
|
|
print('something');
|
|
}
|