summaryrefslogtreecommitdiffstats
path: root/lib/tsan/lit_tests/malloc_overflow.cc
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2014-11-06 22:49:13 +0000
committerdim <dim@FreeBSD.org>2014-11-06 22:49:13 +0000
commitc3f67e1dc21025f1026cbf72628b19fb37f7b53d (patch)
tree3467f3372c1195b1546172d89af2205a50b1866d /lib/tsan/lit_tests/malloc_overflow.cc
parent2f7fa77a0a85c00fd0cce298851e9577b98ccfe8 (diff)
downloadFreeBSD-src-c3f67e1dc21025f1026cbf72628b19fb37f7b53d.zip
FreeBSD-src-c3f67e1dc21025f1026cbf72628b19fb37f7b53d.tar.gz
Import compiler-rt release_34 branch r197381.
https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@197381
Diffstat (limited to 'lib/tsan/lit_tests/malloc_overflow.cc')
-rw-r--r--lib/tsan/lit_tests/malloc_overflow.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tsan/lit_tests/malloc_overflow.cc b/lib/tsan/lit_tests/malloc_overflow.cc
index 19423c5..afbebc8 100644
--- a/lib/tsan/lit_tests/malloc_overflow.cc
+++ b/lib/tsan/lit_tests/malloc_overflow.cc
@@ -1,4 +1,5 @@
-// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s
+// RUN: %clangxx_tsan -O1 %s -o %t
+// RUN: TSAN_OPTIONS=allocator_may_return_null=1 %t 2>&1 | FileCheck %s
#include <stdio.h>
#include <stdlib.h>
OpenPOWER on IntegriCloud