Merge "Fix up a few bionic tests for the clang-r339409 update."
This commit is contained in:
commit
05ba56d6c0
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue