1*925213b0SRafael Espindola // RUN: not %clang_cc1 -fsyntax-only %s 2>&1 | not grep keyXXXX 2882abeb2SChris Lattner // This should not show keyXXXX in the caret diag output. This once 3882abeb2SChris Lattner // happened because the two tokens ended up in the scratch buffer and 4882abeb2SChris Lattner // the caret diag from the scratch buffer included the previous token. 5882abeb2SChris Lattner #define M(name) \ 6882abeb2SChris Lattner if (name ## XXXX != name ## _sb); 7882abeb2SChris Lattner foo()8882abeb2SChris Lattnervoid foo() { 9882abeb2SChris Lattner int keyXXXX; 10882abeb2SChris Lattner M(key); 11882abeb2SChris Lattner } 12882abeb2SChris Lattner 13