Merge "Fix up a few bionic tests for the clang-r339409 update."

This commit is contained in:
Stephen Hines 2018-10-01 15:57:35 +00:00 committed by Gerrit Code Review
commit 05ba56d6c0
2 changed files with 6 additions and 6 deletions

View File

@ -112,16 +112,13 @@ TEST(float_h, macros) {
#if !defined(FLT_EVAL_METHOD)
#error FLT_EVAL_METHOD
#endif
// TODO: FLT_HAS_SUBNORM currently missing from clang. Negate this test when fixed.
#if defined(FLT_HAS_SUBNORM)
#if !defined(FLT_HAS_SUBNORM)
#error FLT_HAS_SUBNORM
#endif
// TODO: DBL_HAS_SUBNORM currently missing from clang. Negate this test when fixed.
#if defined(DBL_HAS_SUBNORM)
#if !defined(DBL_HAS_SUBNORM)
#error DBL_HAS_SUBNORM
#endif
// TODO: LDBL_HAS_SUBNORM currently missing from clang. Negate this test when fixed.
#if defined(LDBL_HAS_SUBNORM)
#if !defined(LDBL_HAS_SUBNORM)
#error LDBL_HAS_SUBNORM
#endif
}

View File

@ -291,7 +291,10 @@ void test_memset_args_flipped() {
char from[4] = {0};
// NOLINTNEXTLINE(whitespace/line_length)
// CLANG: 'memset' will set 0 bytes; maybe the arguments got flipped?
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wmemset-transposed-args"
memset(from, sizeof(from), 0);
#pragma clang diagnostic pop
}
void test_sendto() {