[compiler-rt] r351169 - Explicitly set C++ standard for `Posix/no-fd.cc` ASan test.

Dan Liew via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 15 00:54:10 PST 2019


Author: delcypher
Date: Tue Jan 15 00:54:10 2019
New Revision: 351169

URL: http://llvm.org/viewvc/llvm-project?rev=351169&view=rev
Log:
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

Modified:
    compiler-rt/trunk/test/asan/TestCases/Posix/no-fd.cc

Modified: compiler-rt/trunk/test/asan/TestCases/Posix/no-fd.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Posix/no-fd.cc?rev=351169&r1=351168&r2=351169&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Posix/no-fd.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Posix/no-fd.cc Tue Jan 15 00:54:10 2019
@@ -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
 




More information about the llvm-commits mailing list