diff options
Diffstat (limited to 'test/SemaCXX/warn-bad-memaccess.cpp')
-rw-r--r-- | test/SemaCXX/warn-bad-memaccess.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaCXX/warn-bad-memaccess.cpp b/test/SemaCXX/warn-bad-memaccess.cpp index 3a02c84..7a7459a 100644 --- a/test/SemaCXX/warn-bad-memaccess.cpp +++ b/test/SemaCXX/warn-bad-memaccess.cpp @@ -5,6 +5,11 @@ extern "C" void *memmove(void *s1, const void *s2, unsigned n); extern "C" void *memcpy(void *s1, const void *s2, unsigned n); extern "C" void *memcmp(void *s1, const void *s2, unsigned n); + +// Redeclare without the extern "C" to test that we still figure out that this +// is the "real" memset. +void *memset(void *, int, unsigned); + // Several types that should not warn. struct S1 {} s1; struct S2 { int x; } s2; |