added testcase for the Tokenizer::simplifyGoto

This commit is contained in:
Daniel Marjamäki 2009-08-26 18:54:28 +02:00
parent f94aab35e7
commit 9bdd1def58
1 changed files with 5 additions and 0 deletions

View File

@ -1266,6 +1266,11 @@ private:
const char code[] = "class NoLabels { bool varOne : 1 ; bool varTwo : 1 ; } ;";
ASSERT_EQUALS(code, tok(code));
}
{
const char code[] = "void foo ( ) { int var ; var = x < y ? y : z ; } ;";
ASSERT_EQUALS(code, tok(code));
}
}
};