[docs] Fix build-docs.sh
[llvm-project.git] / llvm / unittests / Support / ToolOutputFileTest.cpp
blob853136b06ee4691d5d943659c83490b4943d143f
1 //===- ToolOutputFileTest.cpp - ToolOutputFile tests ----------------------===//
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 //===----------------------------------------------------------------------===//
9 #include "llvm/Support/ToolOutputFile.h"
10 #include "llvm/Support/FileSystem.h"
11 #include "gtest/gtest.h"
13 using namespace llvm;
15 namespace {
17 TEST(ToolOutputFileTest, DashOpensOuts) {
18 std::error_code EC;
19 EXPECT_EQ(&ToolOutputFile("-", EC, sys::fs::OF_None).os(), &outs());
22 } // namespace