mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add an convert to the new `target-swiftxx-frontend` substitution in lit to control the C++ interop enabling in Swift. This allows for a single site which will enable control of both an overridden standard (for testing multiple C++ standards) and simplify writing tests.
16 lines
488 B
Swift
16 lines
488 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: not %target-swiftxx-frontend -emit-module -o %t/FortyTwo.swiftmodule -I %S/Inputs %s 2>&1 | %FileCheck %s
|
|
|
|
// This test checks that Swift recognizes that the DeclA and DeclB provide
|
|
// different implementations for `getFortySomething()`
|
|
|
|
@_implementationOnly import DeclA
|
|
import DeclB
|
|
|
|
@_inlineable
|
|
public func callFortySomething() -> CInt {
|
|
return getFortySomething()
|
|
}
|
|
|
|
// CHECK: 'getFortySomething' has different definitions in different modules
|