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