From 8564b2f8b0d563a2c328a09916e9e4e3def5978f Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 1 Apr 2018 11:29:07 +0200 Subject: #193 Dropped support for boot::shared_ptr<>, enabled C++11 support in CMake --- .../Tests/Module/CXX11Features/cxx11features.cxx | 57 ---------------------- 1 file changed, 57 deletions(-) delete mode 100644 cmake/cmake-cxx11/Tests/Module/CXX11Features/cxx11features.cxx (limited to 'cmake/cmake-cxx11/Tests/Module/CXX11Features/cxx11features.cxx') diff --git a/cmake/cmake-cxx11/Tests/Module/CXX11Features/cxx11features.cxx b/cmake/cmake-cxx11/Tests/Module/CXX11Features/cxx11features.cxx deleted file mode 100644 index c09038fb..00000000 --- a/cmake/cmake-cxx11/Tests/Module/CXX11Features/cxx11features.cxx +++ /dev/null @@ -1,57 +0,0 @@ -#if defined(HAS_CXX0X_CSTDINT_H) -#include -#endif - -#include - -struct thing { - unsigned char one; -#if defined(HAS_CXX0X_CSTDINT_H) - uint32_t four; -#endif -#if defined(HAS_CXX0X_LONG_LONG) - long long eight; -#endif -}; - -#include - -int main() -{ -#if defined (HAS_CXX0X_NULLPTR) - void *nix = nullptr; -#else /* HAS_CXX0X_NULLPTR */ - void *nix = 0; -#endif /* HAS_CXX0X_NULLPTR */ - -#if defined(HAS_CXX0X_STATIC_ASSERT) - static_assert(1 < 42, "Your C++ compiler is b0rked"); -#endif /* HAS_CXX0X_STATIC_ASSERT */ - -#if defined(HAS_CXX0X_FUNC) - const char *funcname = __func__; - printf("the name of main() function is: %s\n", funcname); -#endif /* HAS_CXX0X_FUNC */ - -#if defined(HAS_CXX0X_SIZEOF_MEMBER) - size_t onesize = sizeof(thing::one); -#if defined(HAS_CXX0X_STATIC_ASSERT) - static_assert(sizeof(thing::one) == 1, "Your char is not one byte long"); -#endif /* HAS_CXX0X_STATIC_ASSERT */ - -#if defined(HAS_CXX0X_CSTDINT_H) - size_t foursize = sizeof(thing::four); -#if defined(HAS_CXX0X_STATIC_ASSERT) - static_assert(sizeof(thing::four) == 4, "Your uint32_t is not 32 bit long"); -#endif /* HAS_CXX0X_STATIC_ASSERT */ -#endif /* HAS_CXX0X_CSTDINT_H */ -#if defined(HAS_CXX0X_LONG_LONG) - size_t eightsize = sizeof(thing::eight); -#if defined(HAS_CXX0X_STATIC_ASSERT) - static_assert(sizeof(thing::eight) == 8, "Your long long is not 64 bit long"); -#endif /* HAS_CXX0X_STATIC_ASSERT */ -#endif /* HAS_CXX0X_LONG_LONG */ -#endif /* HAS_CXX0X_SIZEOF_MEMBER */ - - return 0; -} -- cgit v1.2.3