llvm/mlir/unittests/IR/TypeAttrNamesTest.cpp

//===- TypeAttrNamesTest.cpp - Type API unit tests ------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// This file test the lookup of AbstractType / AbstractAttribute by name.
//
//===----------------------------------------------------------------------===//

#include "mlir/IR/Attributes.h"
#include "mlir/IR/BuiltinTypes.h"
#include "mlir/IR/Dialect.h"
#include "mlir/IR/Types.h"
#include "mlir/IR/Value.h"
#include "mlir/Support/TypeID.h"
#include "gtest/gtest.h"

usingnamespacemlir;

namespace {
struct FooType : Type::TypeBase<FooType, Type, TypeStorage> {};

struct BarAttr : Attribute::AttrBase<BarAttr, Attribute, AttributeStorage> {};

struct FakeDialect : Dialect {};
} // namespace

TEST(AbstractType, LookupWithString) {}

TEST(AbstractAttribute, LookupWithString) {}