[PATCH] D56667: Explicitly set C++ standard fo `Posix/no-fd.cc` ASan test.

Dan Liew via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 14 08:04:12 PST 2019


delcypher created this revision.
delcypher added reviewers: eugenis, yln, vitalybuka.
Herald added subscribers: Sanitizers, kubamracek.

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.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D56667

Files:
  test/asan/TestCases/Posix/no-fd.cc


Index: test/asan/TestCases/Posix/no-fd.cc
===================================================================
--- test/asan/TestCases/Posix/no-fd.cc
+++ 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
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56667.181561.patch
Type: text/x-patch
Size: 398 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190114/e657633a/attachment.bin>


More information about the llvm-commits mailing list