Merge "Fix up a few bionic tests for the clang-r339409 update."
diff --git a/tests/float_test.cpp b/tests/float_test.cpp
index a75214e..3ef4593 100644
--- a/tests/float_test.cpp
+++ b/tests/float_test.cpp
@@ -112,16 +112,13 @@
#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
}
diff --git a/tests/fortify_filecheck_diagnostics_test.cpp b/tests/fortify_filecheck_diagnostics_test.cpp
index a69b967..e79a9a6 100644
--- a/tests/fortify_filecheck_diagnostics_test.cpp
+++ b/tests/fortify_filecheck_diagnostics_test.cpp
@@ -291,7 +291,10 @@
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() {