mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 18:56:06 +00:00

be defined for non Objective-C code as well rdar://29794915 Differential Revision: https://reviews.llvm.org/D28349 llvm-svn: 292617
14 lines
754 B
Matlab
14 lines
754 B
Matlab
// 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=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
|
|
|
|
// BOOL: #define __OBJC_BOOL_IS_BOOL 1
|
|
// BOOL-NOT: #define __OBJC_BOOL_IS_BOOL 0
|
|
|
|
// CHAR: #define __OBJC_BOOL_IS_BOOL 0
|
|
// CHAR-NOT: #define __OBJC_BOOL_IS_BOOL 1
|