2016-10-14 02:42:14 +08:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/objc-initializer %s -emit-llvm -o - -fobjc-arc | FileCheck %s
|
2016-10-15 02:55:44 +08:00
|
|
|
// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/objc-initializer %s -emit-llvm -o - -fobjc-arc -DIMPORT_TOP | FileCheck %s
|
2016-10-14 02:42:14 +08:00
|
|
|
// CHECK: kSimDeviceIOGetInterface = internal constant {{.*}} bitcast
|
|
|
|
|
2016-10-15 02:55:44 +08:00
|
|
|
#ifdef IMPORT_TOP
|
|
|
|
@import X;
|
|
|
|
#else
|
2016-10-14 02:42:14 +08:00
|
|
|
#import <X.h>
|
2016-10-15 02:55:44 +08:00
|
|
|
#endif
|
|
|
|
|
2016-10-14 02:42:14 +08:00
|
|
|
void test2(const NSString*);
|
|
|
|
void test() {
|
|
|
|
test2(kSimDeviceIOGetInterface);
|
|
|
|
}
|