summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/asan/memcmp-1.c
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-11-13 16:28:05 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-11-13 16:29:09 +0000
commit03ac50856c9fc8c96b7a17239ee40a10397750a7 (patch)
treea648c6d3428e4757e003f6ed1748adb9613065db /gcc/testsuite/c-c++-common/asan/memcmp-1.c
parent34efdaf078b01a7387007c4e6bde6db86384c4b7 (diff)
downloadgcc-tarball-03ac50856c9fc8c96b7a17239ee40a10397750a7.tar.gz
gcc 7.2.0
This is imported manually due to a bug in the tarball import script. See the baserock-dev mailing list archives (November 2017) for a more detailed explaination of the issue.
Diffstat (limited to 'gcc/testsuite/c-c++-common/asan/memcmp-1.c')
-rw-r--r--gcc/testsuite/c-c++-common/asan/memcmp-1.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/gcc/testsuite/c-c++-common/asan/memcmp-1.c b/gcc/testsuite/c-c++-common/asan/memcmp-1.c
deleted file mode 100644
index 5915988be5..0000000000
--- a/gcc/testsuite/c-c++-common/asan/memcmp-1.c
+++ /dev/null
@@ -1,20 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fno-builtin-memcmp" } */
-/* { dg-shouldfail "asan" } */
-
-#include <string.h>
-
-volatile int one = 1;
-
-int
-main ()
-{
- char a1[] = {(char)one, 2, 3, 4};
- char a2[] = {1, (char)(2*one), 3, 4};
- int res = memcmp (a1, a2, 5 + one);
- return res;
-}
-
-/* { dg-output "ERROR: AddressSanitizer: stack-buffer-overflow.*(\n|\r\n|\r)" } */
-/* { dg-output " #0 0x\[0-9a-f\]+ +(in _*(interceptor_|wrap_|)memcmp|\[(\])\[^\n\r]*(\n|\r\n|\r)" } */
-/* { dg-output " #1 0x\[0-9a-f\]+ +(in _*main|\[(\])\[^\n\r]*(\n|\r\n|\r)" } */