diff options
Diffstat (limited to 'lib/Lex/PPDirectives.cpp')
-rw-r--r-- | lib/Lex/PPDirectives.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Lex/PPDirectives.cpp b/lib/Lex/PPDirectives.cpp index e4b36fd157..3d312748f9 100644 --- a/lib/Lex/PPDirectives.cpp +++ b/lib/Lex/PPDirectives.cpp @@ -654,7 +654,8 @@ static bool GetLineValue(Token &DigitTok, unsigned &Val, // because it is octal. if (Literal.getRadix() != 10) PP.Diag(DigitTok, diag::warn_pp_line_decimal); - + else if (Literal.hasSuffix()) + PP.Diag(DigitTok, diag::warn_pp_line_digit_sequence); return false; } |