xref: /llvm-project/clang/test/ExtractAPI/submodule-macro.m (revision b1b24d751776d5fd2218a5cb43a8d103bf59fa32)
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
16module 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
26