mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-24 22:08:57 -04:00

any language variant), and restrict __has_feature(objc_modules) to mean that we also have the Objective-C @import syntax. I anticipate __has_feature(cxx_modules) and/or __has_feature(c_modules) for when we nail down the module syntax for C/C++. llvm-svn: 147548
26 lines
856 B
Objective-C
26 lines
856 B
Objective-C
// RUN: %clang_cc1 -E -fmodules %s -o - | FileCheck --check-prefix=CHECK-HAS-OBJC-MODULES %s
|
|
// RUN: %clang_cc1 -E %s -o - | FileCheck --check-prefix=CHECK-NO-OBJC-MODULES %s
|
|
// RUN: %clang_cc1 -E -x c -fmodules %s -o - | FileCheck --check-prefix=CHECK-NO-OBJC-MODULES %s
|
|
|
|
// RUN: %clang_cc1 -E -fmodules %s -o - | FileCheck --check-prefix=CHECK-HAS-MODULES %s
|
|
// RUN: %clang_cc1 -E %s -o - | FileCheck --check-prefix=CHECK-NO-MODULES %s
|
|
// RUN: %clang_cc1 -E -x c -fmodules %s -o - | FileCheck --check-prefix=CHECK-HAS-MODULES %s
|
|
|
|
#if __has_feature(modules)
|
|
int has_modules();
|
|
#else
|
|
int no_modules();
|
|
#endif
|
|
|
|
// CHECK-HAS-MODULES: has_modules
|
|
// CHECK-NO-MODULES: no_modules
|
|
|
|
#if __has_feature(objc_modules)
|
|
int has_objc_modules();
|
|
#else
|
|
int no_objc_modules();
|
|
#endif
|
|
|
|
// CHECK-HAS-OBJC-MODULES: has_objc_modules
|
|
// CHECK-NO-OBJC-MODULES: no_objc_modules
|