From 669148b4545417efde01da6ee805c1e8385abfb3 Mon Sep 17 00:00:00 2001 From: kaizhangNV Date: Mon, 13 Jan 2025 10:06:18 -0800 Subject: [PATCH] Fix reflection test --- tools/slang-unit-test/unit-test-decl-tree-reflection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/slang-unit-test/unit-test-decl-tree-reflection.cpp b/tools/slang-unit-test/unit-test-decl-tree-reflection.cpp index 512be9be5f..0d6a333f0e 100644 --- a/tools/slang-unit-test/unit-test-decl-tree-reflection.cpp +++ b/tools/slang-unit-test/unit-test-decl-tree-reflection.cpp @@ -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();