blob: 7fecd24d4cae27100e5c131b689889d005517efc [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 DynamicLibrary.process()
/// Creates a dynamic library holding all global symbols.
/// Any symbol in a library currently loaded with global visibility (including
/// the executable itself) may be resolved in this library.
/// This feature is not available on Windows, instead an exception is thrown.
/// @description Checks that this constructor creates a dynamic library
/// holding all global symbol
/// @author
import "dart:ffi";
import 'dart:io' show Platform;
import "../../../Utils/expect.dart";
void main() {
if (!Platform.isWindows) {
DynamicLibrary dl = new DynamicLibrary.process();