Files
swift-mirror/test/Interop/Cxx/implementation-only-imports/check-decls-are-identical.swift
Saleem Abdulrasool 357face86e test: introduce new target-swiftxx-frontend for C++ interop
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.
2021-01-12 11:45:36 -08:00

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