[gcc(refs/vendors/redhat/heads/gcc-10-branch)] [testsuite] Avoid duplicate test names in sizeless tests

Jakub Jelinek jakub@gcc.gnu.org
Wed Mar 25 09:59:13 GMT 2020


https://gcc.gnu.org/g:f522810d2b5edb4008afc4a8d003b7e182aa8ba2

commit f522810d2b5edb4008afc4a8d003b7e182aa8ba2
Author: Richard Sandiford <richard.sandiford@arm.com>
Date:   Thu Mar 12 11:54:27 2020 +0000

    [testsuite] Avoid duplicate test names in sizeless tests
    
    Jeff pointed out that using:
    
       N:  ... /* { dg-error {...} } */
     N+1:      /* { dg-error {...} "" { target *-*-* } .-1 } */
    
    led to two identical test names for line N.  Fixed by adding
    a proper test name instead of "".
    
    2020-03-16  Richard Sandiford  <richard.sandiford@arm.com>
    
    gcc/testsuite/
            * gcc.target/aarch64/sve/acle/general-c/sizeless-1.c: Add a test
            name to .-1 dg-error tests.
            * gcc.target/aarch64/sve/acle/general-c/sizeless-2.c: Likewise.

Diff:
---
 gcc/testsuite/ChangeLog                                          | 6 ++++++
 gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-1.c | 2 +-
 gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-2.c | 2 +-
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 36449f1c7a8..c3d6eccea0c 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2020-03-16  Richard Sandiford  <richard.sandiford@arm.com>
+
+	* gcc.target/aarch64/sve/acle/general-c/sizeless-1.c: Add a test
+	name to .-1 dg-error tests.
+	* gcc.target/aarch64/sve/acle/general-c/sizeless-2.c: Likewise.
+
 2020-03-16  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
 
 	* gcc.target/arm/mve/intrinsics/mve_libcall1.c: New test.
diff --git a/gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-1.c b/gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-1.c
index ec892a3fc83..045963d5c76 100644
--- a/gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-1.c
+++ b/gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-1.c
@@ -31,7 +31,7 @@ union union1 {
 
 svint8_t *global_sve_sc_ptr;
 svint8_t *invalid_sve_sc_ptr = &(svint8_t) { *global_sve_sc_ptr }; /* { dg-error {initializer element is not constant} } */
-  /* { dg-error {SVE type 'svint8_t' does not have a fixed size} "" { target *-*-* } .-1 } */
+  /* { dg-error {SVE type 'svint8_t' does not have a fixed size} "2nd line" { target *-*-* } .-1 } */
 
 /* Sizeless arguments and return values.  */
 
diff --git a/gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-2.c b/gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-2.c
index 71743930098..c7282faba46 100644
--- a/gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-2.c
+++ b/gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-2.c
@@ -31,7 +31,7 @@ union union1 {
 
 svint8_t *global_sve_sc_ptr;
 svint8_t *invalid_sve_sc_ptr = &(svint8_t) { *global_sve_sc_ptr }; /* { dg-error {initializer element is not constant} } */
-  /* { dg-error {SVE type 'svint8_t' does not have a fixed size} "" { target *-*-* } .-1 } */
+  /* { dg-error {SVE type 'svint8_t' does not have a fixed size} "2nd line" { target *-*-* } .-1 } */
 
 /* Sizeless arguments and return values.  */


More information about the Gcc-cvs mailing list