xref: /llvm-project/clang/test/Frontend/objc-bool-is-bool.m (revision 7c1d9b15eee3a34678addab2bab66f3020ac0753)
1// RUN: %clang_cc1 -E -dM -triple=armv7k-apple-watchos %s | FileCheck --check-prefix=BOOL %s
2// RUN: %clang_cc1 -E -dM -triple=x86_64-apple-darwin16 %s | FileCheck --check-prefix=CHAR %s
3// RUN: %clang_cc1 -x c -E -dM -triple=x86_64-apple-darwin16 %s | FileCheck --check-prefix=CHAR %s
4// RUN: %clang_cc1 -x objective-c++ -E -dM -triple=x86_64-apple-darwin16 %s | FileCheck --check-prefix=CHAR %s
5// RUN: %clang_cc1 -x c++ -E -dM -triple=x86_64-apple-darwin16 %s | FileCheck --check-prefix=CHAR %s
6
7// BOOL: #define __OBJC_BOOL_IS_BOOL 1
8// BOOL-NOT: #define __OBJC_BOOL_IS_BOOL 0
9
10// CHAR: #define __OBJC_BOOL_IS_BOOL 0
11// CHAR-NOT: #define __OBJC_BOOL_IS_BOOL 1
12