xref: /llvm-project/libcxx/test/std/depr/depr.c.headers/stdbool_h.compile.pass.cpp (revision dafeb97a28467ce90f4eb72f9f00f0cfa1b404b0)
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 // test <stdbool.h>
10 
11 #include <stdbool.h>
12 
13 #ifndef __bool_true_false_are_defined
14 #error __bool_true_false_are_defined not defined
15 #endif
16 
17 #ifdef bool
18 #error bool should not be defined
19 #endif
20 
21 #ifdef true
22 #error true should not be defined
23 #endif
24 
25 #ifdef false
26 #error false should not be defined
27 #endif
28