summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/test/sanitizer_common/TestCases/Linux/mallopt.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/mallopt.cc b/compiler-rt/test/sanitizer_common/TestCases/Linux/mallopt.cc
index 0aa9f98447d..9ac3c5dc597 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/mallopt.cc
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/mallopt.cc
@@ -4,6 +4,7 @@
#include <malloc.h>
int main() {
- int res = mallopt(M_ARENA_MAX, 0);
+ // Try a random mallopt option, possibly invalid.
+ int res = mallopt(-42, 0);
assert(res == 0 || res == 1);
}
OpenPOWER on IntegriCloud