From f0fa8a80a384a61ff2dbfdee028ec000e1b5c697 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Thu, 27 Aug 2015 23:43:39 +0000 Subject: [clang-tidy] Documented the reason to run the test in C++98 mode. llvm-svn: 246238 --- clang-tools-extra/test/clang-tidy/modernize-use-nullptr-basic.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang-tools-extra/test/clang-tidy/modernize-use-nullptr-basic.cpp') diff --git a/clang-tools-extra/test/clang-tidy/modernize-use-nullptr-basic.cpp b/clang-tools-extra/test/clang-tidy/modernize-use-nullptr-basic.cpp index e78c5f1a147..f384d26163b 100644 --- a/clang-tools-extra/test/clang-tidy/modernize-use-nullptr-basic.cpp +++ b/clang-tools-extra/test/clang-tidy/modernize-use-nullptr-basic.cpp @@ -1,5 +1,8 @@ // RUN: %python %S/check_clang_tidy.py %s modernize-use-nullptr %t -- \ // RUN: -std=c++98 -Wno-non-literal-null-conversion +// +// Some parts of the test (e.g. assignment of `const int` to `int *`) fail in +// C++11, so we need to run the test in C++98 mode. const unsigned int g_null = 0; #define NULL 0 -- cgit v1.2.3