Files
swift-mirror/test/ModuleInterface/swift-interface-compile.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

15 lines
557 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -module-cache-path %t/mcp -I %S/Inputs/SR77756 -c %s -o /dev/null -D STATIC
// RUN: %llvm-bcanalyzer -dump %t/mcp/static-*.swiftmodule | %FileCheck %s -check-prefix CHECK-STATIC
// RUN: %target-swift-frontend -module-cache-path %t/mcp -I %S/Inputs/SR77756 -c %s -o /dev/null
// RUN: %llvm-bcanalyzer -dump %t/mcp/dynamic-*.swiftmodule | %FileCheck %s -check-prefix CHECK-DYNAMIC
#if STATIC
import `static`
#else
import `dynamic`
#endif
// CHECK-STATIC: IS_STATIC
// CHECK-DYNAMIC-NOT: IS_STATIC