public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] testsuite: Fix up ext-floating15.C tests on powerpc64-linux [PR109278]
@ 2023-04-25 12:44 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2023-04-25 12:44 UTC (permalink / raw)
  To: gcc-patches

Hi!

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.

Tested on x86_64-linux, i686-linux, powerpc64-linux and powerpc64le-linux,
committed to trunk as obvious, queued for 13.2.

2023-04-25  Jakub Jelinek  <jakub@redhat.com>

	PR c++/109278
	* g++.dg/cpp23/ext-floating15.C: Add dg-add-options float128.

--- gcc/testsuite/g++.dg/cpp23/ext-floating15.C.jj	2023-03-30 09:34:05.609725768 +0200
+++ gcc/testsuite/g++.dg/cpp23/ext-floating15.C	2023-04-24 13:17:40.466212406 +0200
@@ -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" }
 

	Jakub


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-25 12:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-25 12:44 [committed] testsuite: Fix up ext-floating15.C tests on powerpc64-linux [PR109278] Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).