Fix test: "No OpEntryPoint instruction was found"

Bug found when passing program through spirv writer and then reader.

Bug: tint:792
Change-Id: I2acb17554b122c840cf3cc69149f6e004fb37bc7
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/50562
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
Antonio Maiorano 2021-05-11 13:11:30 +00:00 committed by Commit Bot service account
parent 97a7d266e0
commit fe7f7b33fb
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,7 @@ TEST_F(ResolverHostShareableValidationTest, NoError) {
create<ast::BindingDecoration>(0),
create<ast::GroupDecoration>(0),
});
WrapInFunction();
ASSERT_TRUE(r()->Resolve()) << r()->error();
}