236
|
1 // RUN: rm -rf %t && mkdir %t
|
|
2
|
|
3 // RUN: %clang_cc1 -fmodules -x objective-c -emit-module -fmodule-name=InterfaceBridge \
|
|
4 // RUN: %S/Inputs/module-name-used-by-objc-bridge/module.modulemap -o %t/InterfaceBridge.pcm
|
|
5
|
|
6 // RUN: %clang_cc1 -fmodules -x objective-c -emit-module -fmodule-name=Interface \
|
|
7 // RUN: %S/Inputs/module-name-used-by-objc-bridge/module.modulemap -o %t/Interface.pcm
|
|
8
|
|
9 // Check that the `-fmodule-file=<name>=<path>` form succeeds:
|
|
10 // RUN: %clang_cc1 -fmodules -fsyntax-only %s -I %S/Inputs/module-name-used-by-objc-bridge \
|
|
11 // RUN: -fmodule-file=InterfaceBridge=%t/InterfaceBridge.pcm -fmodule-file=Interface=%t/Interface.pcm \
|
|
12 // RUN: -fmodule-map-file=%S/Inputs/module-name-used-by-objc-bridge/module.modulemap -verify
|
|
13
|
|
14 // Check that the `-fmodule-file=<path>` form succeeds:
|
|
15 // RUN: %clang_cc1 -fmodules -fsyntax-only %s -I %S/Inputs/module-name-used-by-objc-bridge \
|
|
16 // RUN: -fmodule-file=%t/InterfaceBridge.pcm -fmodule-file=%t/Interface.pcm \
|
|
17 // RUN: -fmodule-map-file=%S/Inputs/module-name-used-by-objc-bridge/module.modulemap -verify
|
|
18
|
|
19 #import "InterfaceBridge.h"
|
|
20 #import "Interface.h"
|
|
21
|
|
22 @interface Interface (User)
|
|
23 @end
|
|
24
|
|
25 // expected-no-diagnostics
|