| 1 |
// RUN: rm -rf %t |
| 2 |
// RUN: split-file %s %t |
| 3 |
// RUN: %clang_cc1 -extract-api --pretty-sgf --emit-sgf-symbol-labels-for-testing \ |
| 4 |
// RUN: --emit-extension-symbol-graphs --symbol-graph-dir=%t/symbols -isystem %t \ |
| 5 |
// RUN: --product-name=Umbrella -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules-cache \ |
| 6 |
// RUN: -triple arm64-apple-macosx -x objective-c-header %t/Umbrella.h %t/Subheader.h |
| 7 |
|
| 8 |
//--- Umbrella.h |
| 9 |
#include "Subheader.h" |
| 10 |
#import <stdbool.h> |
| 11 |
|
| 12 |
//--- Subheader.h |
| 13 |
#define FOO 1 |
| 14 |
|
| 15 |
//--- module.modulemap |
| 16 |
module Umbrella { |
| 17 |
umbrella header "Umbrella.h" |
| 18 |
export * |
| 19 |
module * { export * } |
| 20 |
} |
| 21 |
|
| 22 |
// RUN: FileCheck %s --input-file %t/symbols/Umbrella.symbols.json --check-prefix MOD |
| 23 |
// MOD-NOT: bool |
| 24 |
// MOD: "!testLabel": "c:@macro@FOO" |
| 25 |
|