+ 18.8 Language support library, Other runtime support: <cstdarg>, <csetjmp>, <ctime...
[lightlibc++.git] / testcase / cstdbool.cpp
blob63b6a3c2f6670166bcf62d506368c3d391b1e5a7
1 /*
2 Permission is granted to use, modify, and / or redistribute at will.
4 This includes removing authorship notices, re-use of code parts in
5 other software (with or without giving credit), and / or creating a
6 commercial product based on it.
8 This permission is not revocable by the author.
10 This software is provided as-is. Use it at your own risk. There is
11 no warranty whatsoever, neither expressed nor implied, and by using
12 this software you accept that the author(s) shall not be held liable
13 for any loss of data, loss of service, or other damages, be they
14 incidental or consequential. Your only option other than accepting
15 this is not to use the software at all.
17 #include <cstdbool>
18 #include <cstdlib>
23 * Check that including cstdbool compiles and that
24 * __bool_true_false_are_defined is defined to 1
29 int main()
31 #if __bool_true_false_are_defined == 1
32 return EXIT_SUCCESS;
33 #else
34 return EXIT_FAILURE;
35 #endif