diff options
Diffstat (limited to 'test/Headers/stdbool.cpp')
-rw-r--r-- | test/Headers/stdbool.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Headers/stdbool.cpp b/test/Headers/stdbool.cpp index a252cca1a6a7..7c927db441b2 100644 --- a/test/Headers/stdbool.cpp +++ b/test/Headers/stdbool.cpp @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -E -dM %s | FileCheck --check-prefix=CHECK-GNU-COMPAT %s // RUN: %clang_cc1 -std=c++98 -E -dM %s | FileCheck --check-prefix=CHECK-CONFORMING %s +// RUN: %clang_cc1 -fsyntax-only -std=gnu++98 -verify -Weverything %s #include <stdbool.h> #define zzz @@ -12,3 +13,7 @@ // CHECK-CONFORMING: #define __CHAR_BIT__ // CHECK-CONFORMING-NOT: #define false false // CHECK-CONFORMING: #define zzz + +zzz +// expected-no-diagnostics +extern bool x; |