chromium/third_party/dawn/src/tint/lang/wgsl/resolver/address_space_validation_test.cc

// Copyright 2021 The Dawn & Tint Authors
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this
//    list of conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright notice,
//    this list of conditions and the following disclaimer in the documentation
//    and/or other materials provided with the distribution.
//
// 3. Neither the name of the copyright holder nor the names of its
//    contributors may be used to endorse or promote products derived from
//    this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "src/tint/lang/wgsl/resolver/resolver.h"

#include "gmock/gmock.h"
#include "src/tint/lang/wgsl/resolver/resolver_helper_test.h"
#include "src/tint/lang/wgsl/sem/struct.h"

namespace tint::resolver {
namespace {

usingnamespacetint::core::fluent_types;     // NOLINT
usingnamespacetint::core::number_suffixes;  // NOLINT

HasSubstr;

ResolverAddressSpaceValidationTest;

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_NoAddressSpace_Fail) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_NoAddressSpace_Fail) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_FunctionAddressSpace_Fail) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Private_RuntimeArray) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_Private_RuntimeArray) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Private_RuntimeArrayInStruct) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_Private_RuntimeArrayInStruct) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Workgroup_RuntimeArray) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_Workgroup_RuntimeArray) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Workgroup_RuntimeArrayInStruct) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_Workgroup_RuntimeArrayInStruct) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Storage_Bool) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_Storage_Bool) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Storage_BoolAlias) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_Storage_BoolAlias) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Storage_Pointer) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Storage_IntScalar) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_Storage_IntScalar) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Storage_F16) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_Storage_F16) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Storage_F16Alias) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_Storage_F16Alias) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Storage_VectorF32) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_Storage_VectorF32) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Storage_VectorF16) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_Storage_VectorF16) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Storage_ArrayF32) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_Storage_ArrayF32) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Storage_ArrayF16) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_Storage_ArrayF16) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Storage_StructI32) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_Storage_StructI32) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Storage_StructI32Aliases) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_Storage_StructI32Aliases) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Storage_StructF16) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_Storage_StructF16) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Storage_StructF16Aliases) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_Storage_StructF16Aliases) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_NotStorage_AccessMode) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_NotStorage_AccessMode) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Storage_ReadAccessMode) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_Storage_ReadAccessMode) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Storage_ReadWriteAccessMode) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_Storage_ReadWriteAccessMode) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_Storage_WriteAccessMode) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_Storage_WriteAccessMode) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_UniformBuffer_Struct_Runtime) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_UniformBuffer_Struct_Runtime) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_UniformBufferBool) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_UniformBufferBool) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_UniformBufferBoolAlias) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_UniformBufferBoolAlias) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_UniformPointer) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_UniformBufferIntScalar) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_UniformBufferIntScalar) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_UniformBufferF16) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_UniformBufferF16) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_UniformBufferVectorF32) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_UniformBufferVectorF32) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_UniformBufferVectorF16) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_UniformBufferVectorF16) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_UniformBufferArrayF32) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_UniformBufferArrayF32) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_UniformBufferArrayF16) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_UniformBufferArrayF16) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_UniformBufferStructI32) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_UniformBufferStructI32) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_UniformBufferStructI32Aliases) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_UniformBufferStructI32Aliases) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_UniformBufferStructF16) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_UniformBufferStructF16) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_UniformBufferStructF16Aliases) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_UniformBufferStructF16Aliases) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_PushConstantBool) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_PushConstantBool) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_PushConstantF16) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_PushConstantF16) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_PushConstantPointer) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_PushConstantIntScalar) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_PushConstantIntScalar) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_PushConstantVectorF32) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_PushConstantVectorF32) {}

TEST_F(ResolverAddressSpaceValidationTest, GlobalVariable_PushConstantArrayF32) {}

TEST_F(ResolverAddressSpaceValidationTest, PointerAlias_PushConstantArrayF32) {}

}  // namespace
}  // namespace tint::resolver