1 //===- llvm/unittest/Support/StringPoiil.cpp - StringPool tests -----------===//
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/Support/StringPool.h"
11 #include "gtest/gtest.h"
17 TEST(PooledStringPtrTest, OperatorEquals) {
19 const PooledStringPtr a = pool.intern("a");
20 const PooledStringPtr b = pool.intern("b");
24 TEST(PooledStringPtrTest, OperatorNotEquals) {
26 const PooledStringPtr a = pool.intern("a");
27 const PooledStringPtr b = pool.intern("b");