- Notifications
You must be signed in to change notification settings - Fork 10.5k
/
Copy pathcompatibility-symbols.swift
13 lines (9 loc) · 807 Bytes
/
compatibility-symbols.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) %S/../Inputs/empty.swift -typecheck -verify -emit-objc-header-path %t/empty.h
// RUN: %clang -extract-api -o %t/empty.symbols.json --target=%target-triple -isysroot %clang-importer-sdk-path -F %clang-importer-sdk-path/frameworks --extract-api-ignores=%swift-share-dir/swift/compatibility-symbols -fmodules -x objective-c-header %t/empty.h
// RUN: %FileCheck %s --input-file %t/empty.symbols.json
// REQUIRES: objc_interop
// Make sure that any macros or typedefs added to the Clang compatibility header are reflected in
// the `comptibility-symbols` file that is installed in the toolchain.
// Use a regex match here to allow the Clang symbol graph to be pretty-printed or condensed
// CHECK: "symbols":{{ ?}}[]