1 //===- llvm/unittest/Support/StringPoiil.cpp - StringPool 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/StringPool.h"
10 #include "gtest/gtest.h"
16 TEST(PooledStringPtrTest
, OperatorEquals
) {
18 const PooledStringPtr a
= pool
.intern("a");
19 const PooledStringPtr b
= pool
.intern("b");
23 TEST(PooledStringPtrTest
, OperatorNotEquals
) {
25 const PooledStringPtr a
= pool
.intern("a");
26 const PooledStringPtr b
= pool
.intern("b");