chromium/third_party/dawn/src/tint/lang/wgsl/ast/transform/expand_compound_assignment_test.cc

// Copyright 2022 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/ast/transform/expand_compound_assignment.h"

#include <utility>

#include "src/tint/lang/wgsl/ast/transform/helper_test.h"

namespace tint::ast::transform {
namespace {

ExpandCompoundAssignmentTest;

TEST_F(ExpandCompoundAssignmentTest, ShouldRunEmptyModule) {}

TEST_F(ExpandCompoundAssignmentTest, ShouldRunHasCompoundAssignment) {}

TEST_F(ExpandCompoundAssignmentTest, ShouldRunHasIncrementDecrement) {}

TEST_F(ExpandCompoundAssignmentTest, Basic) {}

TEST_F(ExpandCompoundAssignmentTest, LhsPointer) {}

TEST_F(ExpandCompoundAssignmentTest, LhsStructMember) {}

TEST_F(ExpandCompoundAssignmentTest, LhsArrayElement) {}

TEST_F(ExpandCompoundAssignmentTest, LhsVectorComponent_ArrayAccessor) {}

TEST_F(ExpandCompoundAssignmentTest, LhsVectorComponent_MemberAccessor) {}

TEST_F(ExpandCompoundAssignmentTest, LhsArrayOfVectorComponent_MemberAccessor_ViaArrayIndex) {}

TEST_F(ExpandCompoundAssignmentTest, LhsVectorComponent_MemberAccessor_ViaDerefPointerDot) {}

TEST_F(ExpandCompoundAssignmentTest, LhsVectorComponent_MemberAccessor_ViaPointerDot) {}

TEST_F(ExpandCompoundAssignmentTest, LhsVectorComponent_MemberAccessor_ViaDerefPointerIndex) {}

TEST_F(ExpandCompoundAssignmentTest, LhsVectorComponent_MemberAccessor_ViaPointerIndex) {}

TEST_F(ExpandCompoundAssignmentTest, LhsMatrixColumn) {}

TEST_F(ExpandCompoundAssignmentTest, LhsMatrixElement) {}

TEST_F(ExpandCompoundAssignmentTest, LhsMultipleSideEffects) {}

TEST_F(ExpandCompoundAssignmentTest, ForLoopInit) {}

TEST_F(ExpandCompoundAssignmentTest, ForLoopCont) {}

TEST_F(ExpandCompoundAssignmentTest, Increment_I32) {}

TEST_F(ExpandCompoundAssignmentTest, Increment_U32) {}

TEST_F(ExpandCompoundAssignmentTest, Decrement_I32) {}

TEST_F(ExpandCompoundAssignmentTest, Decrement_U32) {}

TEST_F(ExpandCompoundAssignmentTest, Increment_LhsPointer) {}

TEST_F(ExpandCompoundAssignmentTest, Increment_LhsStructMember) {}

TEST_F(ExpandCompoundAssignmentTest, Increment_LhsArrayElement) {}

TEST_F(ExpandCompoundAssignmentTest, Increment_LhsVectorComponent_ArrayAccessor) {}

TEST_F(ExpandCompoundAssignmentTest,
       Increment_LhsVectorComponent_ArrayAccessor_ViaDerefPointerIndex) {}

TEST_F(ExpandCompoundAssignmentTest, Increment_LhsVectorComponent_ArrayAccessor_ViaPointerIndex) {}

TEST_F(ExpandCompoundAssignmentTest, Increment_LhsVectorComponent_MemberAccessor) {}

TEST_F(ExpandCompoundAssignmentTest,
       Increment_LhsVectorComponent_MemberAccessor_ViaDerefPointerDot) {}

TEST_F(ExpandCompoundAssignmentTest, Increment_LhsVectorComponent_MemberAccessor_ViaPointerDot) {}

TEST_F(ExpandCompoundAssignmentTest, Increment_ForLoopCont) {}

}  // namespace
}  // namespace tint::ast::transform