summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/tools/llvm-exegesis/X86/TargetTest.cpp
blob: 683f2a05537baa36727d6da23bc8c960e261ce0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "Target.h"

#include <cassert>
#include <memory>

#include "gmock/gmock.h"
#include "gtest/gtest.h"

namespace exegesis {

void InitializeX86ExegesisTarget();

namespace {

using testing::NotNull;

class X86TargetTest : public ::testing::Test {
protected:
  static void SetUpTestCase() { InitializeX86ExegesisTarget(); }
};

TEST_F(X86TargetTest, Lookup) {
  EXPECT_THAT(ExegesisTarget::lookup("x86_64-unknown-linux"), NotNull());
}

} // namespace
} // namespace exegesis
OpenPOWER on IntegriCloud