summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/clog.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/clog.pass.cpp')
-rw-r--r--libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/clog.pass.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/clog.pass.cpp b/libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/clog.pass.cpp
new file mode 100644
index 00000000000..3812b203ae0
--- /dev/null
+++ b/libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/clog.pass.cpp
@@ -0,0 +1,23 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+// <iostream>
+
+// istream clog;
+
+#include <iostream>
+
+int main()
+{
+#if 0
+ std::clog << "Hello World!\n";
+#else
+ (void)std::clog;
+#endif
+}
OpenPOWER on IntegriCloud