1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -E -dM %s | FileCheck --check-prefix=CHECK-GNU-COMPAT %s 2*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -std=c++98 -E -dM %s | FileCheck --check-prefix=CHECK-CONFORMING %s 3*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -std=gnu++98 -verify -Weverything %s 4*f4a2713aSLionel Sambuc #include <stdbool.h> 5*f4a2713aSLionel Sambuc #define zzz 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel Sambuc // CHECK-GNU-COMPAT: #define _Bool bool 8*f4a2713aSLionel Sambuc // CHECK-GNU-COMPAT: #define bool bool 9*f4a2713aSLionel Sambuc // CHECK-GNU-COMPAT: #define false false 10*f4a2713aSLionel Sambuc // CHECK-GNU-COMPAT: #define true true 11*f4a2713aSLionel Sambuc 12*f4a2713aSLionel Sambuc // CHECK-CONFORMING-NOT: #define _Bool 13*f4a2713aSLionel Sambuc // CHECK-CONFORMING: #define __CHAR_BIT__ 14*f4a2713aSLionel Sambuc // CHECK-CONFORMING-NOT: #define false false 15*f4a2713aSLionel Sambuc // CHECK-CONFORMING: #define zzz 16*f4a2713aSLionel Sambuc 17*f4a2713aSLionel Sambuc zzz 18*f4a2713aSLionel Sambuc // expected-no-diagnostics 19*f4a2713aSLionel Sambuc extern bool x; 20