mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
21 lines
510 B
Swift
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}}
|