diff options
| author | Ted Kremenek <kremenek@apple.com> | 2010-12-03 00:09:56 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2010-12-03 00:09:56 +0000 |
| commit | 8c4c74f4fb2495dfd28c4b613ce5ec5a29587b94 (patch) | |
| tree | c432d031ab89504cf61857b7efdc2a7443270394 /clang/test/Lexer/char-escapes.c | |
| parent | eb3411dc41b2d2e759a6797698f0f9b416efafda (diff) | |
| download | bcm5719-llvm-8c4c74f4fb2495dfd28c4b613ce5ec5a29587b94.tar.gz bcm5719-llvm-8c4c74f4fb2495dfd28c4b613ce5ec5a29587b94.zip | |
Fix diagnostic for reporting bad escape sequence.
Patch by Paul Curtis!
llvm-svn: 120759
Diffstat (limited to 'clang/test/Lexer/char-escapes.c')
| -rw-r--r-- | clang/test/Lexer/char-escapes.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Lexer/char-escapes.c b/clang/test/Lexer/char-escapes.c index d918bf4cf07..32a1c6140d5 100644 --- a/clang/test/Lexer/char-escapes.c +++ b/clang/test/Lexer/char-escapes.c @@ -19,3 +19,4 @@ int test['\(' == 40 ? 1 : -1]; // expected-warning {{non-standard escape}} 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'}} |

