]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/testsuite/g++.dg/warn/Warray-bounds-17.C
Correct handling of variable offset minus constant in -Warray-bounds [PR100137]
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / warn / Warray-bounds-17.C
index 64fbd080123404472883f46687cff0ef1ff6edd4..518f9bb26fabc0bb70841d1a67ee2436c64d7b49 100644 (file)
@@ -8,7 +8,7 @@ void foo (int *);
 void
 bar (void)
 {
-  A b;                 // { dg-message "while referencing" }
+  A b;                 // { dg-message "at offset -\\d into object 'b' of size 4" "note" }
   int *p = &b;
   int *x = (p - 1);    // { dg-warning "outside array bounds" }
   foo (x);