text
stringlengths 0
2.2M
|
---|
if (verbose) {
|
P(u_BSLS_LIBRARYFEATURES_HAS_CPP11_RANGE_FUNCTIONS)
|
}
|
case12::TestType mX = { 12 };
|
#if defined(BSLS_LIBRARYFEATURES_HAS_CPP11_RANGE_FUNCTIONS)
|
{
|
int *from = std::begin(mX); (void) from;
|
int *to = std::end(mX); (void) to;
|
}
|
#else
|
{
|
// This will produce ambiguities if 'begin' and 'end' are defined
|
// in both namespaces.
|
using namespace std;
|
using namespace case12;
|
int *from = begin(mX); (void) from;
|
int *to = end(mX); (void) to;
|
}
|
#endif
|
if (veryVeryVerbose) P(BSLS_PLATFORM_CMP_VERSION);
|
} break;
|
case 11: {
|
// --------------------------------------------------------------------
|
// TESTING 'BSLS_LIBRARYFEATURES_HAS_CPP14_INTEGER_SEQUENCE'
|
//
|
// Concerns:
|
//: 1 The 'BSLS_LIBRARYFEATURES_HAS_CPP14_INTEGER_SEQUENCE' flag is
|
//: defined when related macros
|
//: 'BSLS_LIBRARYFEATURES_HAS_CPP11_BASE_LINE',
|
//: 'BSLS_COMPILERFEATURES_SUPPORT_VARIADIC_TEMPLATES' and
|
//: 'BSLS_COMPILERFEATURES_SUPPORT_ALIAS_TEMPLATES' are also defined.
|
//
|
// Plan:
|
//: 1 Confirm the expected relationship between
|
//: 'BSLS_LIBRARYFEATURES_HAS_CPP14_INTEGER_SEQUENCE' and its related
|
//: macros 'BSLS_LIBRARYFEATURES_HAS_CPP11_BASE_LINE',
|
//: 'BSLS_COMPILERFEATURES_SUPPORT_VARIADIC_TEMPLATES' and
|
//: 'BSLS_COMPILERFEATURES_SUPPORT_ALIAS_TEMPLATES' using the
|
//: associated conditionally initialized global variables. See
|
//: "Global constants for testing invariants" above.
|
//
|
// Testing:
|
// BSLS_LIBRARYFEATURES_HAS_CPP14_INTEGER_SEQUENCE
|
// --------------------------------------------------------------------
|
if (verbose) printf(
|
"TESTING 'BSLS_LIBRARYFEATURES_HAS_CPP14_INTEGER_SEQUENCE'\n"
|
"=========================================================\n");
|
if (verbose) {
|
P(u_BSLS_LIBRARYFEATURES_HAS_CPP14_INTEGER_SEQUENCE_defined)
|
}
|
if (u_BSLS_LIBRARYFEATURES_HAS_CPP14_INTEGER_SEQUENCE_defined)
|
{
|
ASSERT(true ==
|
u_BSLS_COMPILERFEATURES_SUPPORT_ALIAS_TEMPLATES_defined);
|
ASSERT(true ==
|
u_BSLS_COMPILERFEATURES_SUPPORT_VARIADIC_TEMPLATES_defined);
|
}
|
if (veryVeryVerbose) P(BSLS_PLATFORM_CMP_VERSION);
|
} break;
|
case 10: {
|
// --------------------------------------------------------------------
|
// TESTING STANDARD LIBRARY IMPLEMENTATION DETECTION
|
//
|
// Concerns:
|
//: 1 We detect the expected libraries for the compilers
|
//:
|
//: 2 We detect the right library implementation
|
//
|
// Plan:
|
//: 1 Verify that the compiler type is one of the expected ones for the
|
//: detected standard library implementation.
|
//:
|
//: 2 Try to include header files that exist only in the given standard
|
//: library implementation to verify that we actually have that
|
//: implementation. This is done in the .cpp file so that it the
|
//: sanity check is always done. To find it, search for
|
//: 'Standard library implementation detection verification' in the
|
//: implementation (.cpp) file.
|
//
|
// Testing:
|
// BSLS_LIBRARYFEATURES_STDCPP_GNU
|
// BSLS_LIBRARYFEATURES_STDCPP_IBM
|
// BSLS_LIBRARYFEATURES_STDCPP_LLVM
|
// BSLS_LIBRARYFEATURES_STDCPP_MSVC
|
// BSLS_LIBRARYFEATURES_STDCPP_LIBCSTD
|
// BSLS_LIBRARYFEATURES_STDCPP_STLPORT
|
// --------------------------------------------------------------------
|
if (verbose) printf(
|
"TESTING STANDARD LIBRARY IMPLEMENTATION DETECTION\n"
|
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.