// RUN: %empty-directory(%t) // RUN: %target-swift-frontend -emit-module -primary-file %S/Inputs/a.swift -emit-module-path %t/a.swiftmodule // RUN: %target-swift-frontend -emit-module -primary-file %S/Inputs/b.swift -emit-module-path %t/b.swiftmodule -I %t // "-verify-ignore-unknown" is for ":0: note: 'init()' declared here" // RUN: %target-swift-frontend-typecheck -verify -verify-ignore-unknown -I %t %s // https://github.com/apple/swift/issues/54969 // Fix cross-module deserialization crash involving `@derivative` attribute. import a import b func foo(_ s: Struct) { // Without this error, the aforementioned issue does not trigger. // expected-error @+1 {{'Struct' initializer is inaccessible due to 'internal' protection level}} _ = Struct() _ = s.method(1) }