summaryrefslogtreecommitdiff
path: root/test/Frontend
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-01-20 16:48:25 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-01-20 16:48:25 +0000
commit4c459707fd74752d8c74e009dbd8983c7050ffa5 (patch)
tree485f6fff6310d4c4c5340d7cedabffbeef741d6a /test/Frontend
parentf1bc8216219c341404fe6cf3f312ba123f186e2b (diff)
[Frontend] The macro that describes the Objective-C bool type should
be defined for non Objective-C code as well rdar://29794915 Differential Revision: https://reviews.llvm.org/D28349 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@292617 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Frontend')
-rw-r--r--test/Frontend/objc-bool-is-bool.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Frontend/objc-bool-is-bool.m b/test/Frontend/objc-bool-is-bool.m
index 464fe2ea8c..ee4fb58d5a 100644
--- a/test/Frontend/objc-bool-is-bool.m
+++ b/test/Frontend/objc-bool-is-bool.m
@@ -1,6 +1,8 @@
// RUN: %clang_cc1 -fsyntax-only -E -dM -triple=armv7k-apple-watchos %s | FileCheck --check-prefix=BOOL %s
// RUN: %clang_cc1 -fsyntax-only -E -dM -triple=x86_64-apple-darwin16 %s | FileCheck --check-prefix=CHAR %s
-// RUN: %clang_cc1 -x c -fsyntax-only -E -dM -triple=x86_64-apple-darwin16 %s | FileCheck --check-prefix=NONE %s
+// RUN: %clang_cc1 -x c -fsyntax-only -E -dM -triple=x86_64-apple-darwin16 %s | FileCheck --check-prefix=CHAR %s
+// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -E -dM -triple=x86_64-apple-darwin16 %s | FileCheck --check-prefix=CHAR %s
+// RUN: %clang_cc1 -x c++ -fsyntax-only -E -dM -triple=x86_64-apple-darwin16 %s | FileCheck --check-prefix=CHAR %s
// rdar://21170440
@@ -9,5 +11,3 @@
// CHAR: #define __OBJC_BOOL_IS_BOOL 0
// CHAR-NOT: #define __OBJC_BOOL_IS_BOOL 1
-
-// NONE-NOT: __OBJC_BOOL_IS_BOOL