Skip to content

Commit ef0a833

Browse files
Merge pull request swiftlang#69351 from kateinoigakukun/pr-c2467dff5ff4eda390b021878b0c5332a674be6e
[test][stdlib] Fix calling convention mismatch in test/stdlib/Runtime.swift.gyb
2 parents 0ec5600 + b49e99a commit ef0a833

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/stdlib/Runtime.swift.gyb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %empty-directory(%t)
22
//
33
// RUN: %gyb %s -o %t/Runtime.swift
4-
// RUN: %target-build-swift -parse-stdlib -module-name a %t/Runtime.swift -o %t.out
4+
// RUN: %target-build-swift -parse-stdlib -module-name a -enable-experimental-feature Extern %t/Runtime.swift -o %t.out
55
// RUN: %target-codesign %t.out
66
// RUN: %target-run %t.out
77
// REQUIRES: executable_test
@@ -24,8 +24,7 @@ import SwiftShims
2424
#error("Unsupported platform")
2525
#endif
2626

27-
@_silgen_name("swift_demangle")
28-
public
27+
@extern(c, "swift_demangle")
2928
func _stdlib_demangleImpl(
3029
mangledName: UnsafePointer<CChar>?,
3130
mangledNameLength: UInt,

0 commit comments

Comments
 (0)