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 //===----------------------------------------------------------------------===//
13 // UNSUPPORTED: no-wide-characters
16 // RUN: %{exec} %t.exe 2> %t.actual
17 // RUN: echo -n 1234 > %t.expected
18 // RUN: diff %t.expected %t.actual
23 #include "test_macros.h"
25 int main(int, char**) {
26 std::wcerr
<< L
"1234";
27 assert(std::wcerr
.flags() & std::ios_base::unitbuf
);
28 assert(std::wcerr
.tie() == &std::wcout
);