diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/slang-unit-test/unit-test-function-lookup-resolution.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/slang-unit-test/unit-test-function-lookup-resolution.cpp b/tools/slang-unit-test/unit-test-function-lookup-resolution.cpp index 539c9ac48..c88ca7760 100644 --- a/tools/slang-unit-test/unit-test-function-lookup-resolution.cpp +++ b/tools/slang-unit-test/unit-test-function-lookup-resolution.cpp @@ -75,6 +75,9 @@ SLANG_UNIT_TEST(functionLookupResolution) auto func1 = layout->findFunctionByNameInType(type, "method"); SLANG_CHECK_ABORT(func1->isOverloaded()); SLANG_CHECK(func1->getOverloadCount() == 3); + // Test that overloaded function containers return the correct name + SLANG_CHECK(func1->getName() != nullptr); + SLANG_CHECK(String(func1->getName()) == "method"); if (func1->isOverloaded()) { List<slang::FunctionReflection*> candidates; |
