blob: da602083b56ff34d24d2ca5f01f9c19f8dc874d4 [file] [log] [blame]
// RUN: %target-swift-frontend -emit-ir %s -enable-objc-interop -import-objc-header %S/Inputs/nested_imported_type_context_descriptor.h | %FileCheck %s
// Nominal type descriptors for the imported type X and both of its nested
// anonymous struct should get emitted as ODR.
// CHECK-DAG: @"$sSo1XVMn" = linkonce_odr hidden constant
// CHECK-DAG: @"$sSo1XV32__Unnamed_struct_nestedTypeFieldVMn" = linkonce_odr hidden constant
// CHECK-DAG: @"$sSo1XV37__Unnamed_struct_otherNestedTypeFieldVMn" = linkonce_odr hidden constant
public func force_metadata() {
print(X().nestedTypeField)
print(X().otherNestedTypeField)
}