1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -E -fmodules %s -o - | FileCheck --check-prefix=CHECK-HAS-OBJC-MODULES %s 2*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -E %s -o - | FileCheck --check-prefix=CHECK-NO-OBJC-MODULES %s 3*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -E -x c -fmodules %s -o - | FileCheck --check-prefix=CHECK-NO-OBJC-MODULES %s 4*f4a2713aSLionel Sambuc 5*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -E -fmodules %s -o - | FileCheck --check-prefix=CHECK-HAS-MODULES %s 6*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -E %s -o - | FileCheck --check-prefix=CHECK-NO-MODULES %s 7*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -E -x c -fmodules %s -o - | FileCheck --check-prefix=CHECK-HAS-MODULES %s 8*f4a2713aSLionel Sambuc 9*f4a2713aSLionel Sambuc#if __has_feature(modules) 10*f4a2713aSLionel Sambucint has_modules(); 11*f4a2713aSLionel Sambuc#else 12*f4a2713aSLionel Sambucint no_modules(); 13*f4a2713aSLionel Sambuc#endif 14*f4a2713aSLionel Sambuc 15*f4a2713aSLionel Sambuc// CHECK-HAS-MODULES: has_modules 16*f4a2713aSLionel Sambuc// CHECK-NO-MODULES: no_modules 17*f4a2713aSLionel Sambuc 18*f4a2713aSLionel Sambuc#if __has_feature(objc_modules) 19*f4a2713aSLionel Sambucint has_objc_modules(); 20*f4a2713aSLionel Sambuc#else 21*f4a2713aSLionel Sambucint no_objc_modules(); 22*f4a2713aSLionel Sambuc#endif 23*f4a2713aSLionel Sambuc 24*f4a2713aSLionel Sambuc// CHECK-HAS-OBJC-MODULES: has_objc_modules 25*f4a2713aSLionel Sambuc// CHECK-NO-OBJC-MODULES: no_objc_modules 26