aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2023-04-25 14:38:01 +0200
committerJakub Jelinek <jakub@redhat.com>2023-04-25 14:42:21 +0200
commit784e03f378bb2c330b96459928d0472d38748970 (patch)
tree1383b54e72a884dd7ac0454500717fa6dc32c589
parent6d4bd27a60447c7505cb4783e675e98a191a8904 (diff)
downloadgcc-784e03f378bb2c330b96459928d0472d38748970.zip
gcc-784e03f378bb2c330b96459928d0472d38748970.tar.gz
gcc-784e03f378bb2c330b96459928d0472d38748970.tar.bz2
testsuite: Fix up ext-floating15.C tests on powerpc64-linux [PR109278]
I've noticed this test FAILs on powerpc64-linux, with FAIL: g++.dg/cpp23/ext-floating15.C -std=gnu++98 (test for excess errors) Excess errors: /home/jakub/gcc/gcc/testsuite/g++.dg/cpp23/ext-floating15.C:8:5: error: '_Float128' is not supported on this target /home/jakub/gcc/gcc/testsuite/g++.dg/cpp23/ext-floating15.C:8:5: error: '_Float128' is not supported on this target /home/jakub/gcc/gcc/testsuite/g++.dg/cpp23/ext-floating15.C:8:1: error: variable or field 'bar' declared void /home/jakub/gcc/gcc/testsuite/g++.dg/cpp23/ext-floating15.C:8:5: error: '_Float128' is not supported on this target /home/jakub/gcc/gcc/testsuite/g++.dg/cpp23/ext-floating15.C:8:6: error: expected primary-expression before '_Float128' and similarly other std versions. powerpc64-linux is float128 target, but needs to add some options for it. Fixed by adding them. 2023-04-25 Jakub Jelinek <jakub@redhat.com> PR c++/109278 * g++.dg/cpp23/ext-floating15.C: Add dg-add-options float128.
-rw-r--r--gcc/testsuite/g++.dg/cpp23/ext-floating15.C1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp23/ext-floating15.C b/gcc/testsuite/g++.dg/cpp23/ext-floating15.C
index 316dd5a..6d7dc6a 100644
--- a/gcc/testsuite/g++.dg/cpp23/ext-floating15.C
+++ b/gcc/testsuite/g++.dg/cpp23/ext-floating15.C
@@ -1,6 +1,7 @@
// PR c++/109278
// { dg-do compile { target float128 } }
// { dg-options "-w" }
+// { dg-add-options float128 }
void foo (long double); // { dg-bogus "initializing argument 1 of" }