Files
swift-mirror/test/ClangImporter/cxx_interop.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

18 lines
346 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swiftxx-frontend -typecheck %s -I %S/Inputs/custom-modules
import CXXInterop
// Basic structs
do {
var tmp: Basic = makeA()
tmp.a = 3
tmp.b = nil
}
// Namespace lookup
func namespaceLookup() -> UnsafeMutablePointer<ns.T> {
var tmp: UnsafeMutablePointer<ns.T> = ns.doMakeT()!
return tmp
}