summaryrefslogtreecommitdiffstats
path: root/test/input.output/iostream.objects/narrow.stream.objects/cerr.pass.cpp
blob: 65925e27a94c1044f419f88704645be506ba548c (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 cerr;

#include <iostream>
#include <cassert>

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