Skip to content

Commit

Permalink
Fix reflection test
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizhangNV committed Jan 13, 2025
1 parent 093bf71 commit 669148b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/slang-unit-test/unit-test-decl-tree-reflection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ SLANG_UNIT_TEST(declTreeReflection)
SLANG_CHECK(moduleDeclReflection->getKind() == slang::DeclReflection::Kind::Module);
SLANG_CHECK(moduleDeclReflection->getChildrenCount() == 9);

// First declaration should be a struct with 1 variable
// First declaration should be a struct with 1 variable and a synthesized constructor
auto firstDecl = moduleDeclReflection->getChild(0);
SLANG_CHECK(firstDecl->getKind() == slang::DeclReflection::Kind::Struct);
SLANG_CHECK(firstDecl->getChildrenCount() == 1);
SLANG_CHECK(firstDecl->getChildrenCount() == 2);

{
slang::TypeReflection* type = firstDecl->getType();
Expand Down

0 comments on commit 669148b

Please sign in to comment.