From 21f95c83252a79efc27f969f2ea31862fab855a1 Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Tue, 15 Jan 2019 08:54:10 +0000 Subject: 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 --- test/asan/TestCases/Posix/no-fd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1