//===- TypeTest.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 // //===----------------------------------------------------------------------===// #include "mlir/IR/BuiltinTypes.h" #include "mlir/IR/Dialect.h" #include "mlir/IR/Types.h" #include "mlir/IR/Value.h" #include "gtest/gtest.h" usingnamespacemlir; /// Mock implementations of a Type hierarchy struct LeafType; struct MiddleType : Type::TypeBase<MiddleType, Type, TypeStorage> { … }; struct LeafType : Type::TypeBase<LeafType, MiddleType, TypeStorage> { … }; struct FakeDialect : Dialect { … }; TEST(Type, Casting) { … }