blob: ca580a8db8e996358fabfd3ff472e8fdc0476239 [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
Marshall Clow7fc6a552019-05-31 18:35:30 +000013#include "test_macros.h"
14
Howard Hinnant3e519522010-05-11 19:42:16 +000015#ifndef __bool_true_false_are_defined
16#error __bool_true_false_are_defined not defined
17#endif
18
19#ifdef bool
20#error bool should not be defined
21#endif
22
23#ifdef true
24#error true should not be defined
25#endif
26
27#ifdef false
28#error false should not be defined
29#endif
30
JF Bastien2df59c52019-02-04 20:31:13 +000031int main(int, char**)
Howard Hinnant3e519522010-05-11 19:42:16 +000032{
JF Bastien2df59c52019-02-04 20:31:13 +000033
34 return 0;
Howard Hinnant3e519522010-05-11 19:42:16 +000035}