Dan Albert | 287553d | 2017-02-16 10:47:51 -0800 | [diff] [blame] | 1 | //===----------------------------------------------------------------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 6 | // Source Licenses. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | // test <cstdbool> |
| 11 | |
| 12 | #include <cstdbool> |
| 13 | |
| 14 | #ifndef __bool_true_false_are_defined |
| 15 | #error __bool_true_false_are_defined not defined |
| 16 | #endif |
| 17 | |
| 18 | #ifdef bool |
| 19 | #error bool should not be defined |
| 20 | #endif |
| 21 | |
| 22 | #ifdef true |
| 23 | #error true should not be defined |
| 24 | #endif |
| 25 | |
| 26 | #ifdef false |
| 27 | #error false should not be defined |
| 28 | #endif |
| 29 | |
| 30 | int main() |
| 31 | { |
| 32 | } |