summaryrefslogtreecommitdiffstats
path: root/tools/slang-unit-test/unit-test-decl-tree-reflection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/slang-unit-test/unit-test-decl-tree-reflection.cpp')
-rw-r--r--tools/slang-unit-test/unit-test-decl-tree-reflection.cpp4
1 files 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 512be9be5..0d6a333f0 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();