summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2011-12-12 18:33:02 +0000
committerHans Wennborg <hans@hanshq.net>2011-12-12 18:33:02 +0000
commit8d5a4093f594f96dd29985fa5ec41c7630d93548 (patch)
tree78b69065c76ee57bd70c038cdd8618cea7e2f8cc
parent766a54bde54cb3116610e67e591bab6d3e9317f0 (diff)
downloadbcm5719-llvm-8d5a4093f594f96dd29985fa5ec41c7630d93548.tar.gz
bcm5719-llvm-8d5a4093f594f96dd29985fa5ec41c7630d93548.zip
Fix signature of sscanf in Builtins.def
llvm-svn: 146390
-rw-r--r--clang/include/clang/Basic/Builtins.def2
-rw-r--r--clang/test/Sema/format-strings-scanf.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/Basic/Builtins.def b/clang/include/clang/Basic/Builtins.def
index e7c300d7c8f..069d38efc0b 100644
--- a/clang/include/clang/Basic/Builtins.def
+++ b/clang/include/clang/Basic/Builtins.def
@@ -658,7 +658,7 @@ LIBBUILTIN(vsnprintf, "ic*zcC*a", "fP:2:", "stdio.h", ALL_LANGUAGES)
LIBBUILTIN(vsprintf, "ic*cC*a", "fP:1:", "stdio.h", ALL_LANGUAGES)
LIBBUILTIN(scanf, "icC*.", "fs:0:", "stdio.h", ALL_LANGUAGES)
LIBBUILTIN(fscanf, "iP*cC*.", "fs:1:", "stdio.h", ALL_LANGUAGES)
-LIBBUILTIN(sscanf, "ic*cC*.", "fs:1:", "stdio.h", ALL_LANGUAGES)
+LIBBUILTIN(sscanf, "icC*cC*.", "fs:1:", "stdio.h", ALL_LANGUAGES)
LIBBUILTIN(vscanf, "icC*a", "fS:0:", "stdio.h", ALL_LANGUAGES)
LIBBUILTIN(vfscanf, "iP*cC*a", "fS:1:", "stdio.h", ALL_LANGUAGES)
LIBBUILTIN(vsscanf, "ic*cC*a", "fS:1:", "stdio.h", ALL_LANGUAGES)
diff --git a/clang/test/Sema/format-strings-scanf.c b/clang/test/Sema/format-strings-scanf.c
index c0f6b0becb2..b16f4a5aa34 100644
--- a/clang/test/Sema/format-strings-scanf.c
+++ b/clang/test/Sema/format-strings-scanf.c
@@ -7,7 +7,7 @@ typedef __WCHAR_TYPE__ wchar_t;
int fscanf(FILE * restrict, const char * restrict, ...) ;
int scanf(const char * restrict, ...) ;
-int sscanf(char * restrict, const char * restrict, ...) ;
+int sscanf(const char * restrict, const char * restrict, ...) ;
int my_scanf(const char * restrict, ...) __attribute__((__format__(__scanf__, 1, 2)));
int vscanf(const char * restrict, va_list);
OpenPOWER on IntegriCloud