Add tests for all fundamental types

This commit is contained in:
Peter Dimov
2021-10-05 07:50:52 +03:00
parent cd1a8fd238
commit 4f6f7c3799
2 changed files with 56 additions and 5 deletions
+35 -5
View File
@@ -67,7 +67,42 @@ struct Ch
int main()
{
TEST(signed char);
TEST(unsigned char);
TEST(short);
TEST(unsigned short);
TEST(int);
TEST(unsigned);
TEST(long);
TEST(unsigned long);
TEST(long long);
TEST(unsigned long long);
TEST(char);
TEST(wchar_t);
#if !defined(BOOST_NO_CXX11_CHAR16_T)
TEST(char16_t);
#endif
#if !defined(BOOST_NO_CXX11_CHAR16_T)
TEST(char32_t);
#endif
#if defined(__cpp_char8_t) && __cpp_char8_t >= 201811L
TEST(char8_t);
#endif
#if defined(__cpp_lib_byte) && __cpp_lib_byte >= 201603L
TEST(std::byte);
#endif
TEST(bool);
TEST(float);
TEST(double);
TEST(long double);
TEST(void);
TEST(void const);
TEST(void volatile);
TEST(void const volatile);
TEST(A);
TEST(B);
@@ -94,11 +129,6 @@ int main()
#endif
TEST(void);
TEST(void const);
TEST(void volatile);
TEST(void const volatile);
TEST(A*);
TEST(B const* volatile*);