mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
691 B
Swift
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) { }
|