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 <stdbool.h> 11 12 #include <stdbool.h> 13 14 #ifndef __bool_true_false_are_defined 15 #error __bool_true_false_are_defined not defined 16 #endif 17 18 #if !defined(__clang__) 19 // GCC defines bool, true, and false in lib/gcc/arm-linux-androideabi/4.8/include/stdbool.h 20 #else 21 22 #ifdef bool 23 #error bool should not be defined 24 #endif 25 26 #ifdef true 27 #error true should not be defined 28 #endif 29 30 #ifdef false 31 #error false should not be defined 32 #endif 33 34 #endif 35 main()36int main() 37 { 38 } 39