blob: 7c927db441b2bc5c097758ade6a3517604ce438a [file] [log] [blame]
Douglas Gregor1f7d02f2010-09-29 04:57:11 +00001// 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
Douglas Gregor1a347f72013-01-30 23:10:17 +00003// RUN: %clang_cc1 -fsyntax-only -std=gnu++98 -verify -Weverything %s
Douglas Gregor1f7d02f2010-09-29 04:57:11 +00004#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
Douglas Gregor1a347f72013-01-30 23:10:17 +000016
17zzz
18// expected-no-diagnostics
19extern bool x;