summaryrefslogtreecommitdiffstats
path: root/tools/slang-test/test-context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/slang-test/test-context.cpp')
-rw-r--r--tools/slang-test/test-context.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/slang-test/test-context.cpp b/tools/slang-test/test-context.cpp
index 5581ab6db..5da998f03 100644
--- a/tools/slang-test/test-context.cpp
+++ b/tools/slang-test/test-context.cpp
@@ -102,3 +102,10 @@ CPPCompilerSet* TestContext::getCPPCompilerSet()
}
return cppCompilerSet;
}
+
+Slang::CPPCompiler* TestContext::getDefaultCPPCompiler()
+{
+ CPPCompilerSet* set = getCPPCompilerSet();
+ return set ? set->getDefaultCompiler() : nullptr;
+}
+