diff options
-rw-r--r-- | clang/unittests/AST/EvaluateAsRValueTest.cpp | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/clang/unittests/AST/EvaluateAsRValueTest.cpp b/clang/unittests/AST/EvaluateAsRValueTest.cpp index 5f456265673..74ac16f612f 100644 --- a/clang/unittests/AST/EvaluateAsRValueTest.cpp +++ b/clang/unittests/AST/EvaluateAsRValueTest.cpp @@ -91,22 +91,21 @@ TEST(EvaluateAsRValue, FailsGracefullyForUnknownTypes) { std::vector<std::string> Args(1, Mode); ASSERT_TRUE(runToolOnCodeWithArgs( new EvaluateConstantInitializersAction(), - R"(template <typename T> - struct vector { - explicit vector(int size); - }; - template <typename R> - struct S { - vector<R> intervals() const { - vector<R> Dependent(2); - return Dependent; - } - }; - void doSomething() { - int Constant = 2 + 2; - (void) Constant; - } - )", + "template <typename T>" + "struct vector {" + " explicit vector(int size);" + "};" + "template <typename R>" + "struct S {" + " vector<R> intervals() const {" + " vector<R> Dependent(2);" + " return Dependent;" + " }" + "};" + "void doSomething() {" + " int Constant = 2 + 2;" + " (void) Constant;" + "}", Args)); } } |