diff options
Diffstat (limited to 'clang/test/Analysis/exercise-ps.c')
| -rw-r--r-- | clang/test/Analysis/exercise-ps.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Analysis/exercise-ps.c b/clang/test/Analysis/exercise-ps.c index 4aaba8e8dd0..217135ec06e 100644 --- a/clang/test/Analysis/exercise-ps.c +++ b/clang/test/Analysis/exercise-ps.c @@ -20,5 +20,6 @@ void_typedef f2_helper(); static void f2(void *buf) { F12_typedef* x; x = f2_helper(); - memcpy((&x[1]), (buf), 1); + memcpy((&x[1]), (buf), 1); // expected-warning{{implicitly declaring C library function 'memcpy' with type 'void *(void *, void const *}} \ + // expected-note{{please include the header <string.h> or explicitly provide a declaration for 'memcpy'}} } |

