Files
swift-mirror/test/Serialization/nonsendable.swift
T
Saleem Abdulrasool 2b8ee6e5a2 test: disallow llvm-bcanalyzer and use new macro
This ensures that we use the correct llvm-bcanalyzer from the just built
compiler tools.
2026-04-13 16:22:02 -07:00

17 lines
692 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) { }