Files
swift-mirror/test/Interop/Cxx/class/extensions-irgen.swift
zoecarver 839839f924 [cxx-interop] Rename enable-cxx-interop -> enable-experimental-cxx-interop.
Also removes the driver flag, this will now also always be guarded on `-Xfrontend`.
2022-04-07 19:15:25 -07:00

14 lines
333 B
Swift

// RUN: %target-swift-emit-ir %s -I %S/Inputs -enable-experimental-cxx-interop | %FileCheck %s
import Extensions
extension Outer.Space.Foo {
func foo() {}
}
Outer.Space.Foo().foo()
// CHECK: call swiftcc void @"$sSo5OuterO5SpaceO3FooV4mainE3fooyyF"
// CHECK: define hidden swiftcc void @"$sSo5OuterO5SpaceO3FooV4mainE3fooyyF"