### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
// Begin of Bar (from "bar.hlt")
// Compiled by HILTI version X.X.X

#include <hilti/rt/compiler-setup.h>

#include <hilti/rt/libhilti.h>

extern uint64_t hlt_internal_hlto_scope;

namespace hlt_internal::Bar {
    struct _t_globals_t;
    struct _t_globals_t : ::hilti::rt::trait::isStruct, ::hilti::rt::Controllable<_t_globals_t> {
        std::string bar{};

        std::string __to_string() const {
            return "["s + "$bar=" + hilti::rt::to_string(bar) + "]";
        }
    };

    inline unsigned int _t_globals_index;
    static inline auto _t_globals() { return ::hilti::rt::detail::moduleGlobals<_t_globals_t>(_t_globals_index); }
    extern void _t_init_globals(::hilti::rt::Context* ctx);
    extern void _t_init_module();
    extern void _t_register_module();
}

HILTI_PRE_INIT(hlt_internal::Bar::_t_register_module)

extern void hlt_internal::Bar::_t_init_globals(::hilti::rt::Context* ctx) {
    ::hilti::rt::detail::initModuleGlobals<_t_globals_t>(_t_globals_index);
    _t_globals()->bar = {"Bar!"s};
}

extern void hlt_internal::Bar::_t_init_module() {
      ::hilti::rt::location("bar.hlt:10:1-10:38");
    ::hilti::rt::print("Hello, world from Bar!"s, &::hilti::rt::type_info::string, ::hilti::rt::Bool(true));
      ::hilti::rt::location("bar.hlt:11:1-11:22");
    ::hilti::rt::print(Foo::_t_globals()->foo, &::hilti::rt::type_info::string, ::hilti::rt::Bool(true));
      ::hilti::rt::location("bar.hlt:12:1-12:17");
    ::hilti::rt::print(Bar::_t_globals()->bar, &::hilti::rt::type_info::string, ::hilti::rt::Bool(true));
}

extern void hlt_internal::Bar::_t_register_module() {
    ::hilti::rt::Library::setScope(&hlt_internal_hlto_scope);
    ::hilti::rt::detail::registerModule({ "Bar", hlt_internal_hlto_scope, &_t_init_module, &_t_init_globals, nullptr, &_t_globals_index});
}

// Begin of Foo (from "foo.hlt")
// Compiled by HILTI version X.X.X

#include <hilti/rt/compiler-setup.h>

#include <hilti/rt/libhilti.h>

extern uint64_t hlt_internal_hlto_scope;

namespace hlt_internal::Foo {
    struct _t_globals_t;
    struct _t_globals_t : ::hilti::rt::trait::isStruct, ::hilti::rt::Controllable<_t_globals_t> {
        std::string foo{};

        std::string __to_string() const {
            return "["s + "$foo=" + hilti::rt::to_string(foo) + "]";
        }
    };

    inline unsigned int _t_globals_index;
    static inline auto _t_globals() { return ::hilti::rt::detail::moduleGlobals<_t_globals_t>(_t_globals_index); }
    extern void _t_init_globals(::hilti::rt::Context* ctx);
    extern void _t_init_module();
    extern void _t_register_module();
}

HILTI_PRE_INIT(hlt_internal::Foo::_t_register_module)

extern void hlt_internal::Foo::_t_init_globals(::hilti::rt::Context* ctx) {
    ::hilti::rt::detail::initModuleGlobals<_t_globals_t>(_t_globals_index);
    _t_globals()->foo = {"Foo!"s};
}

extern void hlt_internal::Foo::_t_init_module() {
      ::hilti::rt::location("foo.hlt:10:1-10:38");
    ::hilti::rt::print("Hello, world from Foo!"s, &::hilti::rt::type_info::string, ::hilti::rt::Bool(true));
      ::hilti::rt::location("foo.hlt:11:1-11:17");
    ::hilti::rt::print(Foo::_t_globals()->foo, &::hilti::rt::type_info::string, ::hilti::rt::Bool(true));
      ::hilti::rt::location("foo.hlt:12:1-12:22");
    ::hilti::rt::print(Bar::_t_globals()->bar, &::hilti::rt::type_info::string, ::hilti::rt::Bool(true));
}

extern void hlt_internal::Foo::_t_register_module() {
    ::hilti::rt::Library::setScope(&hlt_internal_hlto_scope);
    ::hilti::rt::detail::registerModule({ "Foo", hlt_internal_hlto_scope, &_t_init_module, &_t_init_globals, nullptr, &_t_globals_index});
}

// Begin of __linker__
// Compiled by HILTI version X.X.X

#include <hilti/rt/compiler-setup.h>

// 
// Linker code generated for modules:
//   - Bar (<...>/bar.hlt)
//   - Foo (<...>/foo.hlt)

#include <hilti/rt/libhilti.h>

const char HILTI_EXPORT HILTI_WEAK * hlt_internal_hlto_library_version = <...>
const char HILTI_EXPORT HILTI_WEAK * hlt_internal_hlto_bind_to_version = <...>
HILTI_HIDDEN uint64_t hlt_internal_hlto_scope = 0;

