// Statically link a "hello world" program
// XFAIL: linux
// XFAIL: lto
// 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 

// Statically link a "hello world" program
// XFAIL: linux
// REQUIRES: non_lto
// 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 

Disable this test completely on lto systems
Disable this test completely on lto systems

This test succeeds on macosx but fails on iphoneos. XFAIL does not work.
Use "REQUIRES: non_lto" instead.

rdar://26281388
