llvm/llvm/unittests/Support/TypeSizeTest.cpp

//===----------------------------------------------------------------------===//
//
// 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 "llvm/Support/TypeSize.h"
#include "gtest/gtest.h"

usingnamespacellvm;

namespace {

constexpr ElementCount CEElementCount =;

static_assert;
static_assert;

constexpr ElementCount CEElementCountFixed1 =;
static_assert;
static_assert;
static_assert;

constexpr ElementCount CEElementCountFixed3 =;
constexpr ElementCount CEElementCountFixed4 =;

static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;

constexpr ElementCount CEElementCountScalable4 =;

static_assert;
static_assert;
static_assert;
static_assert;

static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;

constexpr TypeSize TSFixed0 =;
constexpr TypeSize TSFixed1 =;
constexpr TypeSize TSFixed32 =;

static_assert;
static_assert;
static_assert;
static_assert;

static_assert;

static_assert;
static_assert;
static_assert;
static_assert;

static_assert;
static_assert;
static_assert;
static_assert;
static_assert;

static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;

TEST(TypeSize, FailIncompatibleTypes) {}

} // namespace