Files
swift-mirror/test/Serialization/nonsendable.swift
2022-02-11 15:44:39 -08:00

17 lines
691 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module -module-name def_nonsendable -o %t %S/Inputs/def_nonsendable.swift
// RUN: llvm-bcanalyzer %t/def_nonsendable.swiftmodule | %FileCheck %s
// RUN: %target-swift-frontend -typecheck -I %t %s -o /dev/null
// RUN: %target-swift-frontend -emit-sil -I %t %s -o /dev/null
// RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -print-module -module-to-print=def_nonsendable -I %t -source-filename=%s | %FileCheck -check-prefix=CHECK-PRINT %s
// CHECK-NOT: UnknownCode
// CHECK-PRINT-DAG: @_nonSendable struct A
// CHECK-PRINT-DAG: @_nonSendable(_assumed) struct B
import def_nonsendable
func test(a: A, b: B) { }