#include "src/tint/lang/wgsl/ast/transform/promote_initializers_to_let.h"
#include "src/tint/lang/wgsl/ast/transform/helper_test.h"
namespace tint::ast::transform {
namespace {
PromoteInitializersToLetTest;
TEST_F(PromoteInitializersToLetTest, EmptyModule) { … }
TEST_F(PromoteInitializersToLetTest, BasicConstArray) { … }
TEST_F(PromoteInitializersToLetTest, BasicRuntimeArray) { … }
TEST_F(PromoteInitializersToLetTest, BasicConstStruct) { … }
TEST_F(PromoteInitializersToLetTest, BasicRuntimeStruct) { … }
TEST_F(PromoteInitializersToLetTest, BasicStruct_OutOfOrder) { … }
TEST_F(PromoteInitializersToLetTest, GlobalConstBasicArray) { … }
TEST_F(PromoteInitializersToLetTest, GlobalConstBasicArray_OutOfOrder) { … }
TEST_F(PromoteInitializersToLetTest, GlobalConstArrayDynamicIndex) { … }
TEST_F(PromoteInitializersToLetTest, LocalConstBasicArray) { … }
TEST_F(PromoteInitializersToLetTest, LocalConstBasicArrayRuntimeIndex) { … }
TEST_F(PromoteInitializersToLetTest, ArrayInForLoopInit) { … }
TEST_F(PromoteInitializersToLetTest, LocalConstArrayInForLoopInit) { … }
TEST_F(PromoteInitializersToLetTest, GlobalConstArrayInForLoopInit) { … }
TEST_F(PromoteInitializersToLetTest, StructInForLoopInit) { … }
TEST_F(PromoteInitializersToLetTest, StructInForLoopInit_OutOfOrder) { … }
TEST_F(PromoteInitializersToLetTest, ArrayInForLoopCond) { … }
TEST_F(PromoteInitializersToLetTest, LocalConstArrayInForLoopCond) { … }
TEST_F(PromoteInitializersToLetTest, GlobalConstArrayInForLoopCond) { … }
TEST_F(PromoteInitializersToLetTest, ArrayInForLoopCont) { … }
TEST_F(PromoteInitializersToLetTest, LocalConstArrayInForLoopCont) { … }
TEST_F(PromoteInitializersToLetTest, GlobalConstArrayInForLoopCont) { … }
TEST_F(PromoteInitializersToLetTest, ArrayInForLoopInitCondCont) { … }
TEST_F(PromoteInitializersToLetTest, LocalConstArrayInForLoopInitCondCont) { … }
TEST_F(PromoteInitializersToLetTest, ArrayInElseIf) { … }
TEST_F(PromoteInitializersToLetTest, ArrayInElseIfChain) { … }
TEST_F(PromoteInitializersToLetTest, LocalConstArrayInElseIfChain) { … }
TEST_F(PromoteInitializersToLetTest, GlobalConstArrayInElseIfChain) { … }
TEST_F(PromoteInitializersToLetTest, ArrayInArrayArrayConstIndex) { … }
TEST_F(PromoteInitializersToLetTest, ArrayInArrayArrayRuntimeIndex) { … }
TEST_F(PromoteInitializersToLetTest, LocalConstArrayInArrayArrayConstIndex) { … }
TEST_F(PromoteInitializersToLetTest, LocalConstArrayInArrayArrayRuntimeIndex) { … }
TEST_F(PromoteInitializersToLetTest, GlobalConstArrayInArrayArray) { … }
TEST_F(PromoteInitializersToLetTest, StructNested) { … }
TEST_F(PromoteInitializersToLetTest, Mixed) { … }
TEST_F(PromoteInitializersToLetTest, Mixed_OutOfOrder) { … }
TEST_F(PromoteInitializersToLetTest, NoChangeOnVarDecl) { … }
TEST_F(PromoteInitializersToLetTest, NoChangeOnVarDecl_OutOfOrder) { … }
TEST_F(PromoteInitializersToLetTest, ForLoopShadowing) { … }
TEST_F(PromoteInitializersToLetTest, AssignAbstractArray) { … }
TEST_F(PromoteInitializersToLetTest, AssignAbstractArray_ToPhony) { … }
TEST_F(PromoteInitializersToLetTest, Bug2241) { … }
}
}