blob: 132ad9c5cd964a0b68af8ba1c557c096d63a8e24 [file] [log] [blame]
Howard Hinnant3e519522010-05-11 19:42:16 +00001//===----------------------------------------------------------------------===//
2//
Chandler Carruth57b08b02019-01-19 10:56:40 +00003// 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
Howard Hinnant3e519522010-05-11 19:42:16 +00006//
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
JF Bastien2df59c52019-02-04 20:31:13 +000029int main(int, char**)
Howard Hinnant3e519522010-05-11 19:42:16 +000030{
JF Bastien2df59c52019-02-04 20:31:13 +000031
32 return 0;
Howard Hinnant3e519522010-05-11 19:42:16 +000033}