From f2d47aa70ee4e72f7095a9f166cb45fc043f75cc Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Wed, 27 Dec 2023 00:44:34 +0000 Subject: [PATCH] testsuite: 32 bit AIX 2 byte wchar 32 bit AIX supports 2 byte wchar. The wchar-multi1.C testcase assumes 4 byte wchar. Update the testcase to require 4 byte wchar. gcc/testsuite/ChangeLog: * g++.dg/cpp23/wchar-multi1.C: Require 4 byte wchar_t. Signed-off-by: David Edelsohn --- gcc/testsuite/g++.dg/cpp23/wchar-multi1.C | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/g++.dg/cpp23/wchar-multi1.C b/gcc/testsuite/g++.dg/cpp23/wchar-multi1.C index d86dfc917906..0e3fb2f3726d 100644 --- a/gcc/testsuite/g++.dg/cpp23/wchar-multi1.C +++ b/gcc/testsuite/g++.dg/cpp23/wchar-multi1.C @@ -1,6 +1,7 @@ // P2362R3 - Remove non-encodable wide character literals and multicharacter // wide character literals. // { dg-do compile } +// { dg-require-effective-target 4byte_wchar_t } char a = 'a'; int b = 'ab'; // { dg-warning "multi-character character constant" } -- 2.47.2