1 //===----------- StringTableBuilderTest.cpp -------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "llvm/MC/StringTableBuilder.h"
11 #include "gtest/gtest.h"
18 TEST(StringTableBuilderTest, Basic) {
34 EXPECT_EQ(Expected, B.data());
35 EXPECT_EQ(1U, B.getOffset("foobar"));
36 EXPECT_EQ(4U, B.getOffset("bar"));
37 EXPECT_EQ(8U, B.getOffset("foo"));