blob: f4211b1a1928d3467a0d4ce11a9f5e4c53793a68 [file] [log] [blame]
// 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.
/// @assertion Represents a native signed 32 bit integer in C.
/// @description Checks that this type represents a native signed 16 bit integer
/// in C.
/// @author
import "dart:ffi";
import "package:ffi/ffi.dart";
import "../../../Utils/expect.dart";
void main() {
Pointer<Int64> p1 = calloc<Int64>(3);
try {
Expect.equals(8, p1.elementAt(1).address - p1.address);
Expect.equals(8, p1.elementAt(2).address - p1.elementAt(1).address);
} finally {;