From cf34faa3e588f951e1bf24b1721edf1912888ed5 Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Tue, 15 Jan 2019 08:54:10 +0000 Subject: [PATCH] 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 llvm-svn: 351169 --- compiler-rt/test/asan/TestCases/Posix/no-fd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/test/asan/TestCases/Posix/no-fd.cc b/compiler-rt/test/asan/TestCases/Posix/no-fd.cc index b0441e92558e..086b01412ddb 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