From 71150e987ddf935237578aec3a4c6e02247882c2 Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Sun, 4 Nov 2012 23:14:41 +0100 Subject: [PATCH] Add testcase related to commit 0d26a79f2c1232926e27477122ea2d9cf30ebd79. cover up the case when there's at least a token before 'namespace %type% { }'. --- test/testsimplifytokens.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/testsimplifytokens.cpp b/test/testsimplifytokens.cpp index 4c716ef7b..4ffc41c39 100644 --- a/test/testsimplifytokens.cpp +++ b/test/testsimplifytokens.cpp @@ -2409,6 +2409,12 @@ private: ASSERT_EQUALS("", tok(code)); } + { + const char code[] = "; namespace std { }"; + + ASSERT_EQUALS(";", tok(code)); + } + { const char code[] = "using namespace std; namespace a{ namespace b{ void f(){} } }";