summaryrefslogtreecommitdiffstats
path: root/test/input.output/iostream.objects/wide.stream.objects/wcerr.pass.cpp
blob: e52963880cb2ae8677c58b65552a0516757cd24c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//===----------------------------------------------------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

// <iostream>

// istream wcerr;

#include <iostream>
#include <cassert>

int main()
{
#if 0
    std::wcerr << L"Hello World!\n";
#else
    assert(std::wcerr.tie() == &std::wcout);
    assert(std::wcerr.flags() & std::ios_base::unitbuf);
#endif
}