diff options
| author | Reid Kleckner <rnk@google.com> | 2019-03-07 18:57:04 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2019-03-07 18:57:04 +0000 |
| commit | 15846bb5acdc8b11c95935a757844093b18d78bb (patch) | |
| tree | aaf4577d28dd1fd898d4eada6ce68d31df287b25 /clang | |
| parent | 2e1479e2f2dd0e5a7c445fdf6f12b6e66aea96f3 (diff) | |
| download | bcm5719-llvm-15846bb5acdc8b11c95935a757844093b18d78bb.tar.gz bcm5719-llvm-15846bb5acdc8b11c95935a757844093b18d78bb.zip | |
Fix some clang analysis tests passing arguments incorrectly
llvm-svn: 355625
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp b/clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp index c8ddc48fa71..2c22a5cf9ed 100644 --- a/clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp +++ b/clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp @@ -933,14 +933,14 @@ TEST(ExprMutationAnalyzerTest, CommaExprWithCallUnresolved) { auto AST = buildASTFromCodeWithArgs( "template <class T> struct S;" "template <class T> void f() { S<T> s; int x, y; s.mf((y, x)); }", - {"-fno-delayed-template-parsing -Wno-unused-value"}); + {"-fno-delayed-template-parsing", "-Wno-unused-value"}); auto Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext()); EXPECT_TRUE(isMutated(Results, AST.get())); AST = buildASTFromCodeWithArgs( "template <class T> void f(T t) { int x, y; g(t, (y, x)); }", - {"-fno-delayed-template-parsing -Wno-unused-value"}); + {"-fno-delayed-template-parsing", "-Wno-unused-value"}); Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext()); EXPECT_TRUE(isMutated(Results, AST.get())); } @@ -1006,7 +1006,7 @@ TEST(ExprMutationAnalyzerTest, CommaExprAsUniquePtr) { UniquePtrDef + "template <class T> void f() " "{ UniquePtr<T> x; UniquePtr<T> y;" " (y, x)->mf(); }", - {"-fno-delayed-template-parsing -Wno-unused-value"}); + {"-fno-delayed-template-parsing", "-Wno-unused-value"}); const auto Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext()); EXPECT_TRUE(isMutated(Results, AST.get())); |

