From 0ea09b1cb69b605665915ec72eed79faead2dd72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 8 Jul 2009 09:38:59 +0200 Subject: [PATCH] templates: simplified a todo test case by removing a redundant function from the code --- test/testsimplifytokens.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/test/testsimplifytokens.cpp b/test/testsimplifytokens.cpp index 9d1cee959..106117270 100644 --- a/test/testsimplifytokens.cpp +++ b/test/testsimplifytokens.cpp @@ -761,11 +761,7 @@ private: " ABC::type v;\n" " v.push_back(4);\n" " }\n" - "};\n" - "\n" - "int main() {\n" - " return 0;\n" - "}"; + "};\n"; const std::string expected(" template < typename T > class ABC " "{" @@ -775,8 +771,7 @@ private: "std :: vector < int > v ;" " v . push_back ( 4 ) ;" " } " - "} ; " - "int main ( ) { return 0 ; }"); + "} ;"); TODO_ASSERT_EQUALS(expected, sizeof_(code)); }