Files
swift-mirror/test/Driver/static-stdlib.swift
Jordan Rose 8cfbf25533 [test] Fix Darwin -static-stdlib test for the iOS simulator.
Make sure to use %target-run instead of just executing the binary
directly.
2016-05-05 11:54:42 -07:00

11 lines
383 B
Swift

// Statically link a "hello world" program
// XFAIL: linux
// REQUIRES: static_stdlib
print("hello world!")
// RUN: rm -rf %t && mkdir %t
// RUN: %target-build-swift -static-stdlib -o %t/static-stdlib %s
// RUN: %target-run %t/static-stdlib | FileCheck %s
// RUN: otool -L %t/static-stdlib | FileCheck %s --check-prefix=OTOOL
// CHECK: hello world!
// OTOOL-NOT: libswiftCore.dylib