blob: 53963126979a9d52205f3f8215fd5fe2eda201f9 [file] [log] [blame]
// 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.
//
// Dart test program for testing the --enable-ffi=false flag.
//
// VMOptions=--enable-ffi=false
library FfiTest;
import 'dart:ffi' as ffi;
import "package:expect/expect.dart";
void main() {
ffi.Pointer<ffi.Int64> p = ffi.allocate();
p.store(42);
Expect.equals(42, p.load<int>());
p.free();
}