testsuite: Make AArch64 attributes_7.c generate unique report lines.
authorChristophe Lyon <christophe.lyon@arm.com>
Fri, 6 May 2022 17:30:51 +0000 (18:30 +0100)
committerChristophe Lyon <christophe.lyon@arm.com>
Fri, 13 May 2022 08:03:05 +0000 (10:03 +0200)
This test is executed in both C and C++ modes, lines 98 and 100 pass
in C++ and are xfail in C.

This results in similar lines in gcc.sum and g++.sum, differing by the
PASS or XFAIL prefix, which confuses compare_test: it reports these
tests twice, as "now fail, but worked before" and "now work, but
didn't before". To make the diagnostic different betweek C and C++, I
use $tool in the dg-error comment field.

2022-05-13  Christophe Lyon  <christophe.lyon@arm.com>

gcc/testsuite/
* gcc.target/aarch64/sve/acle/general/attributes_7.c: Make
diagnostic unique.

gcc/testsuite/gcc.target/aarch64/sve/acle/general/attributes_7.c

index 621666c..95be605 100644 (file)
@@ -95,9 +95,9 @@ f (int c)
   fb = sb;
 
   (void) (c ? sb : sb);
-  (void) (c ? sb : fb); // { dg-error {type mismatch|different types} "" { xfail c } }
+  (void) (c ? sb : fb); // { dg-error {type mismatch|different types} "$tool" { xfail c } }
 
-  (void) (c ? fb : sb); // { dg-error {type mismatch|different types} "" { xfail c } }
+  (void) (c ? fb : sb); // { dg-error {type mismatch|different types} "$tool" { xfail c } }
   (void) (c ? fb : fb);
 }