mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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
16 lines
513 B
Swift
16 lines
513 B
Swift
// RUN: rm -rf %t && mkdir %t
|
|
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/has_ambiguities.swift
|
|
// RUN: not %target-swift-frontend -parse %s -I %t 2>&1 | FileCheck %s
|
|
|
|
import has_ambiguities
|
|
|
|
maybeTrans(0) // expected-error{{ambiguous use of 'maybeTrans'}}
|
|
// CHECK: ambiguous use of 'maybeTrans'
|
|
// CHECK: maybeTrans(0)
|
|
// CHECK: found this candidate
|
|
// CHECK-NOT: transparent
|
|
// CHECK: maybeTrans(i: Int16)
|
|
// CHECK: found this candidate
|
|
// CHECK-NOT: transparent
|
|
// CHECK: maybeTrans(i: Int32)
|