mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 18:59:21 +00:00
Unrevert "[ast] Remove unused constructors and setters".
Hopefully the trybot issue is now resolved. This reverts commit5792783e72, unreverting commit4d28b27935. Change-Id: I2855bf17c5025a3d349e7fce16fdca342517aad3 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/34564 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
89ea705766
commit
c15d0a73ee
@@ -14,6 +14,7 @@
|
||||
#include "src/scope_stack.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
#include "src/ast/type/f32_type.h"
|
||||
#include "src/ast/variable.h"
|
||||
|
||||
namespace tint {
|
||||
@@ -31,7 +32,8 @@ TEST_F(ScopeStackTest, Global) {
|
||||
}
|
||||
|
||||
TEST_F(ScopeStackTest, Global_SetWithPointer) {
|
||||
ast::Variable v;
|
||||
ast::type::F32 f32;
|
||||
ast::Variable v("test", ast::StorageClass::kNone, &f32);
|
||||
v.set_name("my_var");
|
||||
|
||||
ScopeStack<ast::Variable*> s;
|
||||
|
||||
Reference in New Issue
Block a user