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
This commit is contained in:
NAKAMURA Takumi 2013-06-05 06:54:06 +00:00
parent d620e9da74
commit 05f4370074
1 changed files with 1 additions and 0 deletions

View File

@ -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 };"