memchr-1.c: Avoid assuming 4-byte wchar_t.
authorMartin Sebor <msebor@redhat.com>
Wed, 10 Oct 2018 15:33:43 +0000 (15:33 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Wed, 10 Oct 2018 15:33:43 +0000 (09:33 -0600)
commitd3a46ecb386b46dfc8e01a2f50c77804e484c4c5
tree7c5245ab3e64a7b9aab4ccf36624aa38a16e538d
parent7be65e79f68d862f912de22f1c2c61f31ae8e722
memchr-1.c: Avoid assuming 4-byte wchar_t.

gcc/testsuite/ChangeLog:

* gcc.c-torture/execute/memchr-1.c: Avoid assuming 4-byte wchar_t.
Add a test for 2-byte wchar_t.
* gcc.dg/builtin-memchr.c: New test.

From-SVN: r265020
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/memchr-1.c
gcc/testsuite/gcc.dg/builtin-memchr.c [new file with mode: 0644]