Skip to content

Commit 4f64661

Browse files
committed
Add new test
1 parent 92b4fc5 commit 4f64661

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// RUN: %empty-directory(%t)
2+
// RUN: %target-swift-frontend -emit-module -emit-module-path %t/StrictModule.swiftmodule -module-name StrictModule -warn-concurrency %S/Inputs/StrictModule.swift
3+
// RUN: %target-swift-frontend -emit-module -emit-module-path %t/NonStrictModule.swiftmodule -module-name NonStrictModule %S/Inputs/NonStrictModule.swift
4+
// RUN: %target-typecheck-verify-swift -disable-availability-checking -I %t
5+
6+
// REQUIRES: concurrency
7+
8+
@preconcurrency import NonStrictModule
9+
10+
struct MyType {
11+
var nsc: NonStrictClass
12+
}
13+
14+
func test(mt: MyType, nsc: NonStrictClass) {
15+
Task {
16+
print(mt)
17+
}
18+
}

0 commit comments

Comments
 (0)