Files
swift-mirror/test/ClangImporter/InternalBridgingHeader/access_checking_cxx.swift
Henrik G. Olsson cbc0ec3b88 Add -verify-ignore-unrelated where necessary (NFC)
These are tests that fail in the next commit without this flag. This
does not add -verify-ignore-unrelated to all tests with -verify, only
the ones that would fail without it. This is NFC since this flag is
currently a no-op.
2025-10-04 14:19:52 -07:00

10 lines
726 B
Swift

// RUN: %target-typecheck-verify-swift -verify-ignore-unrelated -internal-import-bridging-header %S/../Inputs/cxx-bridging-header.h -sdk %clang-importer-sdk -cxx-interoperability-mode=default -I %S/../Inputs
public func getRed() -> OuterNS.Color { OuterNS.red }
// expected-error@-1{{function cannot be declared public because its result uses an internal type}}
// expected-note@-2{{enum 'OuterNS' is imported by this file as 'internal' from bridging header}}
public func getX(point: OuterNS.MyPoint) -> Double { point.x }
// expected-error@-1{{function cannot be declared public because its parameter uses an internal type}}
// expected-note@-2{{enum 'OuterNS' is imported by this file as 'internal' from bridging header}}