Improve g++.dg/torture/pr118521.C

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.
This commit is contained in:
Richard Biener 2025-02-21 10:05:19 +01:00 committed by Richard Biener
parent 7d383a7343
commit d2720051c4

View 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>);