Skip to content

Commit 685983b

Browse files
committed
Test runtime demangling of Concurrency standard substitutions
1 parent b57a73a commit 685983b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/Runtime/demangleToMetadata.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-build-swift -Xfrontend -enable-experimental-concurrency -parse-stdlib %s -module-name main -o %t/a.out
2+
// RUN: %target-build-swift -parse-stdlib %s -module-name main -o %t/a.out
33
// RUN: %target-codesign %t/a.out
44
// RUN: %target-run %t/a.out
55
// REQUIRES: executable_test
@@ -9,6 +9,7 @@
99

1010
import Swift
1111
import StdlibUnittest
12+
import _Concurrency
1213

1314
let DemangleToMetadataTests = TestSuite("DemangleToMetadata")
1415

@@ -489,6 +490,11 @@ if #available(macOS 10.16, iOS 14.0, watchOS 7.0, tvOS 14.0, *) {
489490
}
490491
}
491492

493+
if #available(SwiftStdlib 5.5, *) {
494+
DemangleToMetadataTests.test("Concurrency standard substitutions") {
495+
expectEqual(TaskGroup<Int>.self, _typeByName("ScGySiG")!)
496+
}
497+
}
492498

493499
runAllTests()
494500

0 commit comments

Comments
 (0)