]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: 32 bit AIX 2 byte wchar
authorDavid Edelsohn <dje.gcc@gmail.com>
Wed, 27 Dec 2023 00:44:34 +0000 (00:44 +0000)
committerDavid Edelsohn <dje.gcc@gmail.com>
Wed, 27 Dec 2023 00:44:34 +0000 (00:44 +0000)
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 <dje.gcc@gmail.com>
gcc/testsuite/g++.dg/cpp23/wchar-multi1.C

index d86dfc917906077e3da4686f397450eded2c6a87..0e3fb2f3726d64e34f493f7a144e2c1dc985c859 100644 (file)
@@ -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" }