1 //===- ToolOutputFileTest.cpp - ToolOutputFile tests ----------------------===//
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
7 //===----------------------------------------------------------------------===//
9 #include "llvm/Support/ToolOutputFile.h"
10 #include "llvm/Support/FileSystem.h"
11 #include "gtest/gtest.h"
17 TEST(ToolOutputFileTest
, DashOpensOuts
) {
19 EXPECT_EQ(&ToolOutputFile("-", EC
, sys::fs::OF_None
).os(), &outs());