r183301 - ASTTests/DeclTest.cpp: Tweak on msvc target to add "-fno-ms-extensions".
NAKAMURA Takumi
geek4civic at gmail.com
Tue Jun 4 23:54:06 PDT 2013
Author: chapuni
Date: Wed Jun 5 01:54:06 2013
New Revision: 183301
URL: http://llvm.org/viewvc/llvm-project?rev=183301&view=rev
Log:
ASTTests/DeclTest.cpp: Tweak on msvc target to add "-fno-ms-extensions".
MS extensions don't prefer imaginary suffix even with -std=c++11.
Modified:
cfe/trunk/unittests/AST/DeclTest.cpp
Modified: cfe/trunk/unittests/AST/DeclTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/AST/DeclTest.cpp?rev=183301&r1=183300&r2=183301&view=diff
==============================================================================
--- cfe/trunk/unittests/AST/DeclTest.cpp (original)
+++ cfe/trunk/unittests/AST/DeclTest.cpp Wed Jun 5 01:54:06 2013
@@ -27,6 +27,7 @@ TEST(Decl, CleansUpAPValues) {
// allocate memory. This test only fails if run under valgrind with full leak
// checking enabled.
std::vector<std::string> Args(1, "-std=c++11");
+ Args.push_back("-fno-ms-extensions");
ASSERT_TRUE(runToolOnCodeWithArgs(
Factory->create(),
"struct X { int a; }; constexpr X x = { 42 };"
More information about the cfe-commits
mailing list