fix a bug in paste avoidance which would cause us to accidentally

form a >>=.  Patch by Abramo Bagnara, testcase by me.

llvm-svn: 99624
This commit is contained in:
Chris Lattner 2010-03-26 17:10:02 +00:00
parent 6efe46cced
commit 80dbccd1bf
2 changed files with 5 additions and 1 deletions

View File

@ -85,7 +85,7 @@ TokenConcatenation::TokenConcatenation(Preprocessor &pp) : PP(pp) {
TokenInfo[tok::star ] |= aci_avoid_equal; // *=
TokenInfo[tok::exclaim ] |= aci_avoid_equal; // !=
TokenInfo[tok::lessless ] |= aci_avoid_equal; // <<=
TokenInfo[tok::greaterequal] |= aci_avoid_equal; // >>=
TokenInfo[tok::greatergreater] |= aci_avoid_equal; // >>=
TokenInfo[tok::caret ] |= aci_avoid_equal; // ^=
TokenInfo[tok::equal ] |= aci_avoid_equal; // ==
}

View File

@ -24,3 +24,7 @@ E: test(str)
// Should expand to L "str" not L"str"
// CHECK: E: L "str"
// Should avoid producing >>=.
#define equal =
F: >>equal
// CHECK: F: >> =