Files
swift-mirror/test/IRGen/module_abi_name.swift
Doug Gregor 6ed794d188 Bake the _Concurrency -> Swift ABI module name into the compiler.
Using `-module-abi-name` for the `_Concurrency` module breaks older
Swift compilers. Instead, hard-code that "Swift" is the ABI name of the
"_Concurrency" module in the compiler to dodge the problem.
2021-03-12 11:21:46 -08:00

21 lines
510 B
Swift

// RUN: %target-swift-frontend -module-name=Hello -module-abi-name Goodbye -emit-ir %s | %FileCheck %s
// CHECK-NOT: {{(5|")Hello}}
// CHECK: [[MODULE_NAME:@.*]] = private constant [8 x i8] c"Goodbye\00"
// CHECK: @"$s7GoodbyeMXM" = {{.*}} [[MODULE_NAME]]
// CHECK: @"$s7Goodbye8GreetingCMn" =
public class Greeting { }
// CHECK-NOT: {{(5|")Hello}}
// CHECK: define {{.*}} @"$s7Goodbye8functionyyF"
@inlinable public func function() { }
func callFunction() {
function()
}
// CHECK-NOT: {{(5|")Hello}}