summaryrefslogtreecommitdiff
path: root/compiler-rt
diff options
context:
space:
mode:
authorDan Liew <dan@su-root.co.uk>2019-01-15 08:54:10 +0000
committerDan Liew <dan@su-root.co.uk>2019-01-15 08:54:10 +0000
commit99ca9c51f0c2995cf551216a98979421cd02887f (patch)
tree8735981c6eebe4dbff51dfadc093df93c63aac19 /compiler-rt
parent0def16c4ac705e373f652dfc1d30c84ee0d2bf2e (diff)
Explicitly set C++ standard for `Posix/no-fd.cc` ASan test.
Summary: The test uses `nullptr` which can break running the test if the compiler happens to be using something older than C++11 as the default language standard. Avoid this by explicitly setting the standard. rdar://problem/47253542 Reviewers: eugenis, yln, vitalybuka Subscribers: kubamracek, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D56667
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/test/asan/TestCases/Posix/no-fd.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/asan/TestCases/Posix/no-fd.cc b/compiler-rt/test/asan/TestCases/Posix/no-fd.cc
index b0441e92558..086b01412dd 100644
--- a/compiler-rt/test/asan/TestCases/Posix/no-fd.cc
+++ b/compiler-rt/test/asan/TestCases/Posix/no-fd.cc
@@ -1,4 +1,4 @@
-// RUN: %clangxx_asan -O0 %s -o %t
+// RUN: %clangxx_asan -std=c++11 -O0 %s -o %t
// RUN: %run %t 2>&1 | FileCheck %s
// RUN: %env_asan_opts=debug=1,verbosity=2 %run %t 2>&1 | FileCheck %s