]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/testsuite/g++.dg/torture/Wsizeof-pointer-memaccess2.C
PR tree-optimization/78918 - missing -Wrestrict on memcpy copying over self
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / torture / Wsizeof-pointer-memaccess2.C
index f2c864b0b24f37c6bd1e22d1f8e723fd357e018b..2dff8f0bc92ac4175b40ce6389c96a2320d36039 100644 (file)
@@ -1,6 +1,6 @@
 // Test -Wsizeof-pointer-memaccess warnings.
 // { dg-do compile }
-// { dg-options "-Wall -Wno-sizeof-array-argument -Wno-stringop-overflow -Wno-stringop-truncation" }
+// { dg-options "-Wall -Wno-array-bounds -Wno-sizeof-array-argument -Wno-stringop-overflow -Wno-stringop-truncation" }
 // Test just twice, once with -O0 non-fortified, once with -O2 fortified,
 // suppressing buffer overflow warnings.
 // { dg-skip-if "" { *-*-* }  { "*" } { "-O0" "-O2" } }