blob: 1a37230fcc18b646a930005f53a82e5ab43ba4ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifdef MODULE_LEFT
@class NSObject;
#endif
#ifdef MODULE_RIGHT
@interface NSObject
@end
#endif
#ifdef APP
__import_module__ Right;
__import_module__ Left;
@interface MyObject : NSObject
@end
#endif
// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodule-cache-path %t -fdisable-module-hash -emit-module -o %t/Left.pcm -DMODULE_LEFT %s
// RUN: %clang_cc1 -fmodule-cache-path %t -fdisable-module-hash -emit-module -o %t/Right.pcm -DMODULE_RIGHT %s
// RUN: %clang_cc1 -fmodule-cache-path %t -fdisable-module-hash -DAPP %s -verify
|