blob: c357b78b9705cb55f6e04bf6869c018013c48deb [file] [log] [blame]
// Copyright (c) 2020, 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 test program for testing getters/setters in structs rather than fields.
library FfiTest;
import 'dart:ffi';
/// Sample struct for dart:ffi library.
final class Coordinate extends Struct {
@Double()
external double get x;
external set x(double v);
@Double()
external double get y;
external set y(double v);
external Pointer<Coordinate> get next;
external set next(Pointer<Coordinate> v);
}