diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2023-01-25 11:24:32 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2023-01-25 11:24:32 +0000 |
commit | 7c47a3bea6f270a6e0a778eb1acd5f76e863213f (patch) | |
tree | 05745ce876696f104cbaf4d55beb0f1d06530232 | |
parent | 27b2eb6b35bb1cc28fd67e0437ff2e8422df2ab0 (diff) | |
download | gcc-7c47a3bea6f270a6e0a778eb1acd5f76e863213f.zip gcc-7c47a3bea6f270a6e0a778eb1acd5f76e863213f.tar.gz gcc-7c47a3bea6f270a6e0a778eb1acd5f76e863213f.tar.bz2 |
aarch64: Update sizeless tests
The sizeless-*.c tests contained (deliberately) invalid constructors
that had two errors. The first error now suppresses the second error,
but the second error was the main focus of the test. This patch
therefore rewrites it into a different form.
gcc/testsuite/
* gcc.target/aarch64/sve/acle/general-c/sizeless-1.c: Avoid
"initializer element is not constant" error.
* gcc.target/aarch64/sve/acle/general-c/sizeless-2.c: Likewise.
-rw-r--r-- | gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-1.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-2.c | 3 |
2 files changed, 2 insertions, 4 deletions
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 4b34a71..01cfd14 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 @@ -30,8 +30,7 @@ union union1 { /* Pointers to sizeless types. */ 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} "2nd line" { target *-*-* } .-1 } */ +svint8_t *invalid_sve_sc_ptr = &(svint8_t) {}; /* { dg-error {SVE type 'svint8_t' does not have a fixed size} } */ /* 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 34dfd59..613b9c4 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 @@ -30,8 +30,7 @@ union union1 { /* Pointers to sizeless types. */ 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} "2nd line" { target *-*-* } .-1 } */ +svint8_t *invalid_sve_sc_ptr = &(svint8_t) {}; /* { dg-error {SVE type 'svint8_t' does not have a fixed size} } */ /* Sizeless arguments and return values. */ |