xref: /llvm-project/libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wclog.sh.cpp (revision 257eb74524446a919b3378afad39de37cc470ce4)
1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 
9 // <iostream>
10 
11 // wostream wclog;
12 
13 // XFAIL: no-wide-characters
14 
15 // RUN: %{build}
16 // RUN: %{exec} %t.exe 2> %t.actual
17 // RUN: echo -n 1234 > %t.expected
18 // RUN: diff %t.expected %t.actual
19 
20 #include <iostream>
21 
main(int,char **)22 int main(int, char**) {
23     std::wclog << L"1234";
24     return 0;
25 }
26