Handle 16 bit targets in diagnostic pruning
authorJeff Law <law@redhat.com>
Tue, 20 Oct 2020 23:28:34 +0000 (17:28 -0600)
committerJeff Law <law@redhat.com>
Tue, 20 Oct 2020 23:29:32 +0000 (17:29 -0600)
gcc/testsuite
* gcc.dg/Wbuiltin-declaration-mismatch-9.c: Improve pruning of
invalid scanf call messages.

gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-9.c

index 56a827ab5273e8f61954fafe98c2eed8cb0b1458..82db8fe33d10a716e265580efae873d38b023ade 100644 (file)
@@ -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" } */