mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-10 06:53:50 +00:00
silent more tests
This commit is contained in:
parent
3149b75b87
commit
cd6a4210bb
33
debian/patches/silent-more-tests.diff
vendored
33
debian/patches/silent-more-tests.diff
vendored
@ -49,3 +49,36 @@ Index: llvm-toolchain-snapshot_3.8~svn243372/test/Feature/load_module.ll
|
||||
|
||||
@junk = global i32 0
|
||||
|
||||
Index: llvm-toolchain-3.8_3.8~+rc1/clang/test/SemaCXX/warn-memsize-comparison.cpp
|
||||
===================================================================
|
||||
--- llvm-toolchain-3.8_3.8~+rc1.orig/clang/test/SemaCXX/warn-memsize-comparison.cpp
|
||||
+++ llvm-toolchain-3.8_3.8~+rc1/clang/test/SemaCXX/warn-memsize-comparison.cpp
|
||||
@@ -11,8 +11,6 @@ extern "C" int strncasecmp(const char *s
|
||||
extern "C" char *strncpy(char *dst, const char *src, size_t n);
|
||||
extern "C" char *strncat(char *dst, const char *src, size_t n);
|
||||
extern "C" char *strndup(const char *src, size_t n);
|
||||
-extern "C" size_t strlcpy(char *dst, const char *src, size_t size);
|
||||
-extern "C" size_t strlcat(char *dst, const char *src, size_t size);
|
||||
|
||||
void f() {
|
||||
char b1[80], b2[80];
|
||||
@@ -70,18 +68,6 @@ void f() {
|
||||
expected-note {{explicitly cast the argument}}
|
||||
if (strndup(b1, sizeof(b1)) != 0) {}
|
||||
|
||||
- if (strlcpy(b1, b2, sizeof(b1) != 0)) {} // \
|
||||
- expected-warning{{size argument in 'strlcpy' call is a comparison}} \
|
||||
- expected-note {{did you mean to compare}} \
|
||||
- expected-note {{explicitly cast the argument}}
|
||||
- if (strlcpy(b1, b2, sizeof(b1)) != 0) {}
|
||||
-
|
||||
- if (strlcat(b1, b2, sizeof(b1) != 0)) {} // \
|
||||
- expected-warning{{size argument in 'strlcat' call is a comparison}} \
|
||||
- expected-note {{did you mean to compare}} \
|
||||
- expected-note {{explicitly cast the argument}}
|
||||
- if (strlcat(b1, b2, sizeof(b1)) != 0) {}
|
||||
-
|
||||
if (memset(b1, 0, sizeof(b1) / 2)) {}
|
||||
if (memset(b1, 0, sizeof(b1) >> 2)) {}
|
||||
if (memset(b1, 0, 4 << 2)) {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user