Fix an ifdef in a test
We don't support GCC here anymore. More importantly: `#ifdef foo &&
bar` is apparently parsed as `#ifdef foo` with extra tokens at the end.
Oops.
Bug: None
Test: Treehugger
Change-Id: I63d09b0fbad688d3b68a3327a52b3bb55627272f
diff --git a/tests/fortify_test.cpp b/tests/fortify_test.cpp
index b5b858f..bc33251 100644
--- a/tests/fortify_test.cpp
+++ b/tests/fortify_test.cpp
@@ -417,11 +417,9 @@
ASSERT_FORTIFY(sprintf(buf, "%s", source_buf));
}
-#ifdef __clang__ && !__has_attribute(alloc_size)
+#if !__has_attribute(alloc_size)
// TODO: remove this after Clang prebuilt rebase.
#else
-// This test is disabled in clang because clang doesn't properly detect
-// this buffer overflow. TODO: Fix clang.
TEST_F(DEATHTEST, sprintf_malloc_fortified) {
char* buf = (char *) malloc(10);
char source_buf[11];