Files
swift-mirror/test/Serialization/top-level-code.swift
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

14 lines
428 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module -o %t %s -module-name Test
// RUN: %llvm-bcanalyzer %t/Test.swiftmodule | %FileCheck %s
// RUN: cp %s %t/main.swift
// RUN: %target-swift-frontend -typecheck -verify %t/main.swift -primary-file %S/Inputs/top-level-code-other.swift
// CHECK-NOT: UnknownCode
let a: Int? = 1 // expected-note {{'a' declared here}}
guard let b = a else {
fatalError()
}