#include <slang-compiler/slang.h>
#include <cstdio>

int main()
{
    printf("Slang build tag: %s\n", spGetBuildTagString());

    slang::IGlobalSession* session = nullptr;
    SlangResult result = slang::createGlobalSession(&session);
    if (SLANG_FAILED(result) || !session)
    {
        fprintf(stderr, "Failed to create Slang global session\n");
        return 1;
    }

    printf("Slang global session created successfully\n");
    printf("Session build tag: %s\n", session->getBuildTagString());

    session->release();
    slang_shutdown();
    return 0;
}
