public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-8297] Fix contracts-tmpl-spec2.C on targets where plain char is unsigned by default
@ 2024-02-07 17:35 Torbjorn Svensson
  0 siblings, 0 replies; only message in thread
From: Torbjorn Svensson @ 2024-02-07 17:35 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:0cdb04629641c51498f099db04021e8de51adedb

commit r13-8297-g0cdb04629641c51498f099db04021e8de51adedb
Author: Andrew Pinski <quic_apinski@quicinc.com>
Date:   Thu Nov 23 18:55:30 2023 -0800

    Fix contracts-tmpl-spec2.C on targets where plain char is unsigned by default
    
    Since contracts-tmpl-spec2.C is just testing contracts, I thought it would be better
    to just add `-fsigned-char` to the options rather than change the testcase to support
    both cases.
    
    Committed after testing on aarch64-linux-gnu.
    
    gcc/testsuite/ChangeLog:
    
            PR testsuite/108321
            * g++.dg/contracts/contracts-tmpl-spec2.C: Add -fsigned-char
            to options.
    
    Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
    
    (cherry picked from commit 6e15e4e1abed02443a27a69455f4bfa49457c99e)

Diff:
---
 gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec2.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec2.C b/gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec2.C
index 82117671b2d3..fd3a25bd0514 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec2.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec2.C
@@ -1,6 +1,6 @@
 // basic test to ensure contracts work for class and member specializations
 // { dg-do run }
-// { dg-options "-std=c++2a -fcontracts -fcontract-continuation-mode=on" }
+// { dg-options "-std=c++2a -fcontracts -fcontract-continuation-mode=on -fsigned-char" }
 #include <cstdio>
 
 // template specializations can have differing contracts

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

only message in thread, other threads:[~2024-02-07 17:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-07 17:35 [gcc r13-8297] Fix contracts-tmpl-spec2.C on targets where plain char is unsigned by default Torbjorn Svensson

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).