Trivial testsuite fix for 16bit targets
Jeff Law
law@redhat.com
Tue Oct 20 23:31:18 GMT 2020
cr16-elf regressed this test:
cr16-sim: gcc.dg/Wbuiltin-declaration-mismatch-9.c (test for excess errors)
There's a dg-prune in the test which stripped out some messages, but it
wasn't sufficient to cover the 16 bit targets. This patch adds another
string to prune. Committed.
Jeff
-------------- next part --------------
gcc/testsuite
* gcc.dg/Wbuiltin-declaration-mismatch-9.c: Improve pruning of
invalid scanf call messages.
diff --git a/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-9.c b/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-9.c
index 56a827ab527..82db8fe33d1 100644
--- a/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-9.c
+++ b/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-9.c
@@ -12,4 +12,5 @@ void a (void)
}
/* The invalid scanf call may also trigger:
- { dg-prune-output "accessing 4 bytes in a region of size 1" } */
+ { dg-prune-output "accessing 4 bytes in a region of size 1" }
+ { dg-prune-output "accessing 2 bytes in a region of size 1" } */
More information about the Gcc-patches
mailing list