diff options
author | Hans Wennborg <hans@hanshq.net> | 2013-12-14 00:46:53 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2013-12-14 00:46:53 +0000 |
commit | 9b395ef284341ee7f3525bb55f72c8b8e43a85b2 (patch) | |
tree | 73f59139554d4f31242c80e4fc2768d56f78e041 /clang/test/Sema/format-strings-scanf.c | |
parent | 57ae056a5c0d616ee3fd1d8136b74c2854a68a60 (diff) | |
download | bcm5719-llvm-9b395ef284341ee7f3525bb55f72c8b8e43a85b2.tar.gz bcm5719-llvm-9b395ef284341ee7f3525bb55f72c8b8e43a85b2.zip |
Don't require -re suffix on -verify directives with regexes.
Differential Revision: http://llvm-reviews.chandlerc.com/D2392
llvm-svn: 197295
Diffstat (limited to 'clang/test/Sema/format-strings-scanf.c')
-rw-r--r-- | clang/test/Sema/format-strings-scanf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/format-strings-scanf.c b/clang/test/Sema/format-strings-scanf.c index 381447c84a6..69112c0977e 100644 --- a/clang/test/Sema/format-strings-scanf.c +++ b/clang/test/Sema/format-strings-scanf.c @@ -107,9 +107,9 @@ void test_alloc_extension(char **sp, wchar_t **lsp, float *fp) { // Test argument type check for the 'm' length modifier. scanf("%ms", fp); // expected-warning{{format specifies type 'char **' but the argument has type 'float *'}} - scanf("%mS", fp); // expected-warning-re{{format specifies type 'wchar_t **' (aka '{{[^']+}}') but the argument has type 'float *'}} + scanf("%mS", fp); // expected-warning{{format specifies type 'wchar_t **' (aka '{{[^']+}}') but the argument has type 'float *'}} scanf("%mc", fp); // expected-warning{{format specifies type 'char **' but the argument has type 'float *'}} - scanf("%mC", fp); // expected-warning-re{{format specifies type 'wchar_t **' (aka '{{[^']+}}') but the argument has type 'float *'}} + scanf("%mC", fp); // expected-warning{{format specifies type 'wchar_t **' (aka '{{[^']+}}') but the argument has type 'float *'}} scanf("%m[abc]", fp); // expected-warning{{format specifies type 'char **' but the argument has type 'float *'}} } |