summaryrefslogtreecommitdiff
path: root/clang/test/Sema/memset-invalid.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/memset-invalid.c')
-rw-r--r--clang/test/Sema/memset-invalid.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Sema/memset-invalid.c b/clang/test/Sema/memset-invalid.c
new file mode 100644
index 0000000..c763858
--- /dev/null
+++ b/clang/test/Sema/memset-invalid.c
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -fsyntax-only %s -verify
+
+char memset(); // expected-warning {{incompatible redeclaration of library function 'memset'}} expected-note{{'memset' is a builtin with type}}
+char test() {
+ return memset();
+}