1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 // XFAIL: no-wide-characters
13 // Tests that include ordering does not affect the definition of wcsstr.
14 // See: https://llvm.org/PR62638
23 const wchar_t* cv2
= L
"/";
24 v1
= wcsstr(cv2
, L
"/"); // expected-error {{assigning to 'wchar_t *' from 'const wchar_t *' discards qualifiers}}