[libcxx] r318618 - Fix nodiscard test when modules are enabled
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 18 19:50:35 PST 2017
Author: ericwf
Date: Sat Nov 18 19:50:35 2017
New Revision: 318618
URL: http://llvm.org/viewvc/llvm-project?rev=318618&view=rev
Log:
Fix nodiscard test when modules are enabled
Modified:
libcxx/trunk/test/libcxx/diagnostics/nodiscard.pass.cpp
Modified: libcxx/trunk/test/libcxx/diagnostics/nodiscard.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/diagnostics/nodiscard.pass.cpp?rev=318618&r1=318617&r2=318618&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/diagnostics/nodiscard.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/diagnostics/nodiscard.pass.cpp Sat Nov 18 19:50:35 2017
@@ -13,6 +13,7 @@
// UNSUPPORTED: c++98, c++03, c++11, c++14
+// MODULES_DEFINES: _LIBCPP_DISABLE_NODISCARD_AFTER_CXX17
#define _LIBCPP_DISABLE_NODISCARD_AFTER_CXX17
#include <__config>
More information about the cfe-commits
mailing list