char_sign.cpp
Go to the documentation of this file.
00001 
00009 /*****************************************************************************
00010 ** Includes
00011 *****************************************************************************/
00012 
00013 #include <iostream>
00014 #include <gtest/gtest.h>
00015 #include "../../include/ecl/config/char_sign.hpp"
00016 
00017 /*****************************************************************************
00018 ** Tests
00019 *****************************************************************************/
00020 /*
00021  * Doesn't matter what the result is, just provide coverage.
00022  * compile time if they aren't.
00023  */
00024 TEST(TypeTests,fundamentals) {
00025         bool result = ecl::is_char_signed();
00026         if ( result ) {
00027                 std::cout << "Char is signed." << std::endl;
00028         } else {
00029                 std::cout << "Char is unsigned." << std::endl;
00030         }
00031         result = false; // stop gcc warnings.
00032     SUCCEED();
00033 }
00034 
00035 /*****************************************************************************
00036 ** Main
00037 *****************************************************************************/
00038 
00039 int main(int argc, char **argv) {
00040         std::cout << "CHAR_MIN" << CHAR_MIN << std::endl;
00041         testing::InitGoogleTest(&argc,argv);
00042     return RUN_ALL_TESTS();
00043 }
00044 
00045 


ecl_config
Author(s): Daniel Stonier
autogenerated on Thu Jun 6 2019 18:53:17