blob: 7b7805f917107e9a7e670ff8babd0c2ad6d6c84c [file] [log] [blame]
Nikola Smiljanic89e561a2014-06-19 00:26:49 +00001//===- llvm/unittest/Support/ThreadLocalTest.cpp - Therad Local tests ---===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#include "llvm/Support/StringPool.h"
11#include "gtest/gtest.h"
12
13using namespace llvm;
14
15namespace {
16
17TEST(PooledStringPtrTest, OperatorEquals) {
18 StringPool pool;
19 const PooledStringPtr a = pool.intern("a");
20 const PooledStringPtr b = pool.intern("b");
21 EXPECT_FALSE(a == b);
22}
23
24TEST(PooledStringPtrTest, OperatorNotEquals) {
25 StringPool pool;
26 const PooledStringPtr a = pool.intern("a");
27 const PooledStringPtr b = pool.intern("b");
28 EXPECT_TRUE(a != b);
29}
30
31}