// // Copyright 2024 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // PruneNoOps_test.cpp: // Tests for pruning no-op statements. // #include "GLSLANG/ShaderLang.h" #include "angle_gl.h" #include "gtest/gtest.h" #include "tests/test_utils/compiler_test.h" usingnamespacesh; namespace { class PruneNoOpsTest : public MatchOutputCodeTest { … }; // Test that a switch statement with a constant expression without a matching case is pruned. TEST_F(PruneNoOpsTest, SwitchStatementWithConstantExpressionNoMatchingCase) { … } // Test that a switch statement with a constant expression with a default is not pruned. TEST_F(PruneNoOpsTest, SwitchStatementWithConstantExpressionWithDefault) { … } // Test that a switch statement with a constant expression with a matching case is not pruned. TEST_F(PruneNoOpsTest, SwitchStatementWithConstantExpressionWithMatchingCase) { … } } // namespace