blob: 42a66832a796721db0b52cc10858d6087e7688ed [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.
class Coordinate extends Struct {
external double get x;
external set x(double v);
external double get y;
external set y(double v);
external Pointer<Coordinate> get next;
external set next(Pointer<Coordinate> v);