Files
swift-mirror/test/Serialization/generic_subscript.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

13 lines
500 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-build-swift -emit-module -o %t %S/Inputs/has_generic_subscript.swift %S/Inputs/has_generic_subscript_proto.swift -module-name has_generic_subscript
// RUN: %llvm-bcanalyzer %t/has_generic_subscript.swiftmodule | %FileCheck %s
// RUN: %target-swift-frontend -emit-ir -I %t %s -o /dev/null
// CHECK-NOT: UnknownCode
import has_generic_subscript
var sillyDict = GenericSubscript()
_ = sillyDict as GenericSubscriptProto
var value: Int = sillyDict["beer"]