blob: ee4fb58d5a77ef4f33e0bbb78729591fe86a0186 [file] [log] [blame]
Alex Lorenz9229d332016-11-21 11:05:15 +00001// RUN: %clang_cc1 -fsyntax-only -E -dM -triple=armv7k-apple-watchos %s | FileCheck --check-prefix=BOOL %s
2// RUN: %clang_cc1 -fsyntax-only -E -dM -triple=x86_64-apple-darwin16 %s | FileCheck --check-prefix=CHAR %s
Alex Lorenz41d13152017-01-20 16:48:25 +00003// RUN: %clang_cc1 -x c -fsyntax-only -E -dM -triple=x86_64-apple-darwin16 %s | FileCheck --check-prefix=CHAR %s
4// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -E -dM -triple=x86_64-apple-darwin16 %s | FileCheck --check-prefix=CHAR %s
5// RUN: %clang_cc1 -x c++ -fsyntax-only -E -dM -triple=x86_64-apple-darwin16 %s | FileCheck --check-prefix=CHAR %s
Alex Lorenz9229d332016-11-21 11:05:15 +00006
7// rdar://21170440
8
9// BOOL: #define __OBJC_BOOL_IS_BOOL 1
10// BOOL-NOT: #define __OBJC_BOOL_IS_BOOL 0
11
12// CHAR: #define __OBJC_BOOL_IS_BOOL 0
13// CHAR-NOT: #define __OBJC_BOOL_IS_BOOL 1