diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:04:10 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:04:10 +0000 |
| commit | 74a628f776edb588bff8f8f5cc16eac947c9d631 (patch) | |
| tree | dc32e010ac4902621e5a279bfeb48628f7f0e166 /unittests/Target/MemoryRegionInfoTest.cpp | |
| parent | afed7be32164a598f8172282c249af7266c48b46 (diff) | |
Diffstat (limited to 'unittests/Target/MemoryRegionInfoTest.cpp')
| -rw-r--r-- | unittests/Target/MemoryRegionInfoTest.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/unittests/Target/MemoryRegionInfoTest.cpp b/unittests/Target/MemoryRegionInfoTest.cpp new file mode 100644 index 000000000000..704f7f8c48c6 --- /dev/null +++ b/unittests/Target/MemoryRegionInfoTest.cpp @@ -0,0 +1,20 @@ +//===-- MemoryRegionInfoTest.cpp --------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "lldb/Target/MemoryRegionInfo.h" +#include "llvm/Support/FormatVariadic.h" +#include "gtest/gtest.h" + +using namespace lldb_private; + +TEST(MemoryRegionInfoTest, Formatv) { + EXPECT_EQ("yes", llvm::formatv("{0}", MemoryRegionInfo::eYes).str()); + EXPECT_EQ("no", llvm::formatv("{0}", MemoryRegionInfo::eNo).str()); + EXPECT_EQ("don't know", llvm::formatv("{0}", MemoryRegionInfo::eDontKnow).str()); +} |
