summaryrefslogtreecommitdiff
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
commit21f95c83252a79efc27f969f2ea31862fab855a1 (patch)
treeb88cd6e6fdf7ac5e32a1e27d02f93e63dbd1adba
parentb62e4aea7d45d0cb6a90a57821ad1a28ed055a49 (diff)
downloadcompiler-rt-21f95c83252a79efc27f969f2ea31862fab855a1.tar.gz
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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@351169 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/asan/TestCases/Posix/no-fd.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/asan/TestCases/Posix/no-fd.cc b/test/asan/TestCases/Posix/no-fd.cc
index b0441e925..086b01412 100644
--- a/test/asan/TestCases/Posix/no-fd.cc
+++ b/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