Make sure the assembler-with-cpp hack for "#" works with multiple "#"s in
succession. Fixes PR16363. llvm-svn: 184240
This commit is contained in:
parent
1470e2077a
commit
cdf8b88285
|
@ -1920,6 +1920,8 @@ void Preprocessor::HandleDefineDirective(Token &DefineTok,
|
|||
// confused.
|
||||
if (getLangOpts().AsmPreprocessor && Tok.isNot(tok::eod)) {
|
||||
LastTok.setKind(tok::unknown);
|
||||
MI->AddTokenToBody(LastTok);
|
||||
continue;
|
||||
} else {
|
||||
Diag(Tok, diag::err_pp_stringize_not_parameter);
|
||||
ReleaseMacroInfo(MI);
|
||||
|
|
|
@ -77,3 +77,7 @@
|
|||
// rdar://8823139
|
||||
# ##
|
||||
// CHECK-Identifiers-False: # ##
|
||||
|
||||
#define X(a) # # # 1
|
||||
X(1)
|
||||
// CHECK-Identifiers-False: # # # 1
|
||||
|
|
Loading…
Reference in New Issue