Skip to content

Commit b49e99a

Browse files
[test][stdlib] Fix calling convention mismatch in test/stdlib/Runtime.swift.gyb
`swift_demangle` is defined with C calling convention, but the test case used SwiftCC.
1 parent a5967fa commit b49e99a

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)