Files
swift-mirror/test/Driver/static-stdlib.swift
Arnold Schwaighofer c665c326d4 Add missing REQUIRES: executable_test
To get check-swift-only_non_executable clean again.
2017-09-12 14:50:15 -07:00

13 lines
414 B
Swift

// Statically link a "hello world" program
// XFAIL: linux
// REQUIRES: static_stdlib
// REQUIRES: executable_test
print("hello world!")
// RUN: %empty-directory(%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