Patch by Paul Curtis!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120759
91177308-0d34-0410-b5e6-
96231b3b80d8
if (Diags == 0)
break;
- if (isgraph(ThisTokBuf[0]))
+ if (isgraph(ResultChar))
Diags->Report(Loc, diag::ext_unknown_escape)
<< std::string()+(char)ResultChar;
else
int test['\{' == 123 ? 1 : -1]; // expected-warning {{non-standard escape}}
int test['\[' == 91 ? 1 : -1]; // expected-warning {{non-standard escape}}
int test['\%' == 37 ? 1 : -1]; // expected-warning {{non-standard escape}}
+const char *format = "abc \m def"; // expected-warning{{unknown escape sequence '\m'}}