mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Most tests were using %swift or similar substitutions, which did not include the target triple and SDK. The driver was defaulting to the host OS. Thus, we could not run the tests when the standard library was not built for OS X. Swift SVN r24504
22 lines
702 B
Swift
22 lines
702 B
Swift
// RUN: rm -rf %t
|
|
// RUN: mkdir %t
|
|
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/struct_with_operators.swift
|
|
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/alias.swift -module-name has_alias
|
|
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/xref_distraction.swift
|
|
// RUN: %target-swift-frontend -emit-module -o %t -I %t %S/Inputs/has_xref.swift
|
|
// RUN: llvm-bcanalyzer %t/has_xref.swiftmodule | FileCheck %s
|
|
// RUN: %target-swift-frontend -emit-silgen -I %t %s > /dev/null
|
|
|
|
// CHECK-NOT: UnknownCode
|
|
|
|
import xref_distraction
|
|
import has_xref
|
|
|
|
numeric(42)
|
|
conditional(true)
|
|
longInt(42)
|
|
numericArray([42])
|
|
|
|
func incr<T: ExtraIncrementable>(x: T) {}
|
|
incr(SpecialInt())
|