vmImage: 'Ubuntu 16.04'
steps:
- script: |
- export CPPFLAGS="-Werror -Wall -Wextra -Wextra-semi" && cd icu4c/source && ./runConfigureICU Linux && make -j2 tests
+ export CPPFLAGS="-Werror -Wall -Wextra -Wextra-semi -Wundef -Wnon-virtual-dtor" && cd icu4c/source && ./runConfigureICU Linux && make -j2 tests
displayName: 'Build only (WarningsAsErrors)'
env:
CC: clang
vmImage: 'macOS-10.14'
steps:
- script: |
- export CPPFLAGS="-Werror -Wall -Wextra -Wextra-semi" && cd icu4c/source && ./runConfigureICU MacOSX && make -j2 tests
+ export CPPFLAGS="-Werror -Wall -Wextra -Wextra-semi -Wundef -Wnon-virtual-dtor" && cd icu4c/source && ./runConfigureICU MacOSX && make -j2 tests
displayName: 'Build only (WarningsAsErrors)'
env:
CC: clang
- CXX: clang++
\ No newline at end of file
+ CXX: clang++
* created by: Markus W. Scherer
*/
-#if U_HAVE_STRING_VIEW
+#ifdef U_HAVE_STRING_VIEW
#include <string_view>
#endif
TESTCASE_AUTO(TestStringPiece);
TESTCASE_AUTO(TestStringPieceComparisons);
TESTCASE_AUTO(TestStringPieceOther);
-#if U_HAVE_STRING_VIEW
+#ifdef U_HAVE_STRING_VIEW
TESTCASE_AUTO(TestStringPieceStringView);
#endif
TESTCASE_AUTO(TestByteSink);
assertEquals("data()", piece.data(), other.data());
}
-#if U_HAVE_STRING_VIEW
+#ifdef U_HAVE_STRING_VIEW
void
StringTest::TestStringPieceStringView() {
static constexpr char msg[] = "Kapow!";
void TestStringPiece();
void TestStringPieceComparisons();
void TestStringPieceOther();
-#if U_HAVE_STRING_VIEW
+#ifdef U_HAVE_STRING_VIEW
void TestStringPieceStringView();
#endif
void TestByteSink();