Files
swift-mirror/test/Serialization/static.swift
Saleem Abdulrasool 8466ef6d80 Serialization: allow IS_STATIC_LIBRARY to be deserialised properly
Properly encode the field metadata to permit the deserialization by
`llvm-bcanalyzer` for aiding debugging.
2023-07-18 10:28:12 -07:00

13 lines
528 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module -o %t %s
// RUN: llvm-bcanalyzer -dump %t/static.swiftmodule | %FileCheck %s -check-prefix CHECK -check-prefix DYNAMIC
// RUN: %target-swift-frontend -static -emit-module -o %t %s
// RUN: llvm-bcanalyzer -dump %t/static.swiftmodule | %FileCheck %s -check-prefix CHECK -check-prefix STATIC
// CHECK: <MODULE_BLOCK {{.*}}>
// CHECK-STATIC: <IS_STATIC abbrevid={{[0-9]+}}/>
// CHECK-DYNAMIC-NOT: <IS_STATIC abbrevid={{[0-9]+}}/>
// CHECK: </MODULE_BLOCK>