From 05f4370074554cce02b34f591dfa18982e6a3548 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 5 Jun 2013 06:54:06 +0000 Subject: [PATCH] ASTTests/DeclTest.cpp: Tweak on msvc target to add "-fno-ms-extensions". MS extensions don't prefer imaginary suffix even with -std=c++11. llvm-svn: 183301 --- clang/unittests/AST/DeclTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/unittests/AST/DeclTest.cpp b/clang/unittests/AST/DeclTest.cpp index d377ffda623e..c845da2ca607 100644 --- a/clang/unittests/AST/DeclTest.cpp +++ b/clang/unittests/AST/DeclTest.cpp @@ -27,6 +27,7 @@ TEST(Decl, CleansUpAPValues) { // allocate memory. This test only fails if run under valgrind with full leak // checking enabled. std::vector Args(1, "-std=c++11"); + Args.push_back("-fno-ms-extensions"); ASSERT_TRUE(runToolOnCodeWithArgs( Factory->create(), "struct X { int a; }; constexpr X x = { 42 };"