]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Improve g++.dg/torture/pr118521.C
authorRichard Biener <rguenther@suse.de>
Fri, 21 Feb 2025 09:05:19 +0000 (10:05 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 21 Feb 2025 09:08:24 +0000 (10:08 +0100)
Alexander pointed out the way to do a dg-bogus in an included header.

PR tree-optimization/118521
* g++.dg/torture/pr118521.C: Use dg-bogus properly.

gcc/testsuite/g++.dg/torture/pr118521.C

index 1a66aca0e8d24153cf69e6a3f8df564c32ddb14c..08836bd5f0e91ba6e6591eeb444ee53e1e6fd714 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-do compile }
 // { dg-additional-options "-Wall" }
 
-#include <vector> // dg-bogus new_allocator.h:191 warning: writing 1 byte into a region of size 0
+#include <vector> // { dg-bogus "writing 1 byte into a region of size 0" "" { target *-*-* } 0 }
 
 void bar(std::vector<char>);