diff options
author | Andrew Pinski <quic_apinski@quicinc.com> | 2023-11-23 18:55:30 -0800 |
---|---|---|
committer | Andrew Pinski <quic_apinski@quicinc.com> | 2023-11-25 19:00:42 -0800 |
commit | 6e15e4e1abed02443a27a69455f4bfa49457c99e (patch) | |
tree | db6529bbd013a0979c1625d271af6bf4f115ffb4 | |
parent | 4e88c4809a3e050fccd21a4fd6248160d2d0376d (diff) | |
download | gcc-6e15e4e1abed02443a27a69455f4bfa49457c99e.zip gcc-6e15e4e1abed02443a27a69455f4bfa49457c99e.tar.gz gcc-6e15e4e1abed02443a27a69455f4bfa49457c99e.tar.bz2 |
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>
-rw-r--r-- | gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec2.C | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec2.C b/gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec2.C index 8211767..fd3a25b 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 |