text
stringlengths
0
2.2M
//: bitwidth integral types
//:
//: o atomic class template and specializations for pointer types
//
// Plan:
//: 1 When 'BSLS_LIBRARYFEATURES_HAS_CPP17_PRECISE_BITWIDTH_ATOMICS' is
//: defined conditionally compile code that includes '<atomic>', and
//: uses each of the listed types at least once. (C-1)
//
// Testing:
// BSLS_LIBRARYFEATURES_HAS_CPP17_PRECISE_BITWIDTH_ATOMICS
// --------------------------------------------------------------------
if (verbose) printf(
"TESTING 'BSLS_LIBRARYFEATURES_HAS_CPP17_PRECISE_BITWIDTH_ATOMICS'\n"
"=================================================================\n");
if (verbose) {
P(
u_BSLS_LIBRARYFEATURES_HAS_CPP17_PRECISE_BITWIDTH_ATOMICS_defined)
}
#if defined(BSLS_LIBRARYFEATURES_HAS_CPP17_PRECISE_BITWIDTH_ATOMICS)
useCpp11PreciseBitwidthAtomics();
#endif
if (veryVeryVerbose) P(BSLS_PLATFORM_CMP_VERSION);
} break;
case 7: {
// --------------------------------------------------------------------
// TESTING 'isblank'
//
// Concerns:
//: 1 The one-argument form of 'isblank' is available when
//: 'BSLS_LIBRARYFEATURES_HAS_CPP11_BASELINE_LIBRARY' is defined.
//:
//: 2 The two-argument locale form of 'isblank' is available when
//: 'BSLS_LIBRARYFEATURES_HAS_CPP11_MISCELLANEOUS_UTILITIES' is
//: defined.
//
// Plan:
//: 1 When 'BSLS_LIBRARYFEATURES_HAS_CPP11_BASELINE_LIBRARY' is defined
//: compile code that uses the one-argument 'isblank'.
//:
//: 2 When 'BSLS_LIBRARYFEATURES_HAS_CPP11_MISCELLANEOUS_UTILITIES' is
//: defined compile code that uses the two-argument 'isblank'.
//
// Testing:
// int native_std::isblank(int);
// bool native_std::isblank(char, const native_std::locale&);
// --------------------------------------------------------------------
if (verbose) printf("TESTING 'isblank'\n"
"=================\n");
if (verbose) {
P(u_BSLS_LIBRARYFEATURES_HAS_CPP11_BASELINE_LIBRARY_defined)
P(u_BSLS_LIBRARYFEATURES_HAS_CPP11_MISCELLANEOUS_UTILITIES_defined)
}
#ifdef BSLS_LIBRARYFEATURES_HAS_CPP11_BASELINE_LIBRARY
if (verbose) {
printf("Expecting 'isblank' from <cctype>\n");
}
int (*isblankc)(int) = &native_std::isblank;
(void)isblankc;
#else
if (verbose) {
printf("Not expecting 'isblank' from <cctype>\n");
}
#endif
#ifdef BSLS_LIBRARYFEATURES_HAS_CPP11_MISCELLANEOUS_UTILITIES
if (verbose) {
printf("Expecting 'isblank' from <locale>\n");
}
bool (*isblankl)(char, const native_std::locale&) =
&native_std::isblank;
(void)isblankl;
#else
if (verbose) {
printf("Not expecting 'isblank' from <locale>\n");
}
#endif
} break;
case 6: {
// --------------------------------------------------------------------
// TESTING 'BSLS_LIBRARYFEATURES_HAS_C99_*'
//
// Concerns:
//: 1 'BSLS_LIBRARYFEATURES_HAS_C99_LIBRARY' is defined only when the
//: native standard library provides C99 features.
//:
//: 2 'BSLS_LIBRARYFEATURES_HAS_C99_SNPRINTF' is defined only when the
//: native standard library provides C99 'snprintf'.
//
//
// Plan:
//: 1 When 'BSLS_LIBRARYFEATURES_HAS_C99_LIBRARY' is defined compile
//: code that uses C99 library functions.