95 lines
3.3 KiB
Plaintext
95 lines
3.3 KiB
Plaintext
### 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 const char* __hlt_hlto_scope;
|
|
|
|
namespace __hlt::Bar {
|
|
std::optional<std::string> bar = {};
|
|
}
|
|
|
|
namespace __hlt::Foo {
|
|
extern std::optional<std::string> foo;
|
|
}
|
|
|
|
namespace __hlt::Bar {
|
|
extern void __init_globals(::hilti::rt::Context* ctx);
|
|
extern void __destroy_globals(::hilti::rt::Context* ctx);
|
|
extern void __init_module();
|
|
extern void __register_module();
|
|
}
|
|
|
|
HILTI_PRE_INIT(__hlt::Bar::__register_module)
|
|
|
|
extern void __hlt::Bar::__destroy_globals(::hilti::rt::Context* ctx) { ::__hlt::Bar::bar.reset();; }
|
|
|
|
extern void __hlt::Bar::__init_globals(::hilti::rt::Context* ctx) { ::__hlt::Bar::bar = "Bar!"s; }
|
|
|
|
extern void __hlt::Bar::__init_module() {
|
|
__location__("bar.hlt:10:1-10:38");
|
|
::hilti::rt::print("Hello, world from Bar!"s, &::hilti::rt::type_info::string, ::hilti::rt::Bool(true));
|
|
__location__("bar.hlt:11:1-11:22");
|
|
::hilti::rt::print((*__hlt::Foo::foo), &::hilti::rt::type_info::string, ::hilti::rt::Bool(true));
|
|
__location__("bar.hlt:12:1-12:17");
|
|
::hilti::rt::print((*__hlt::Bar::bar), &::hilti::rt::type_info::string, ::hilti::rt::Bool(true));
|
|
}
|
|
|
|
extern void __hlt::Bar::__register_module() { ::hilti::rt::detail::registerModule({ "Bar", __hlt_hlto_scope, &__init_module, &__init_globals, &__destroy_globals, nullptr}); }
|
|
// 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 const char* __hlt_hlto_scope;
|
|
|
|
namespace __hlt::Bar {
|
|
extern std::optional<std::string> bar;
|
|
}
|
|
|
|
namespace __hlt::Foo {
|
|
std::optional<std::string> foo = {};
|
|
extern void __init_globals(::hilti::rt::Context* ctx);
|
|
extern void __destroy_globals(::hilti::rt::Context* ctx);
|
|
extern void __init_module();
|
|
extern void __register_module();
|
|
}
|
|
|
|
HILTI_PRE_INIT(__hlt::Foo::__register_module)
|
|
|
|
extern void __hlt::Foo::__destroy_globals(::hilti::rt::Context* ctx) { ::__hlt::Foo::foo.reset();; }
|
|
|
|
extern void __hlt::Foo::__init_globals(::hilti::rt::Context* ctx) { ::__hlt::Foo::foo = "Foo!"s; }
|
|
|
|
extern void __hlt::Foo::__init_module() {
|
|
__location__("foo.hlt:10:1-10:38");
|
|
::hilti::rt::print("Hello, world from Foo!"s, &::hilti::rt::type_info::string, ::hilti::rt::Bool(true));
|
|
__location__("foo.hlt:11:1-11:17");
|
|
::hilti::rt::print((*__hlt::Foo::foo), &::hilti::rt::type_info::string, ::hilti::rt::Bool(true));
|
|
__location__("foo.hlt:12:1-12:22");
|
|
::hilti::rt::print((*__hlt::Bar::bar), &::hilti::rt::type_info::string, ::hilti::rt::Bool(true));
|
|
}
|
|
|
|
extern void __hlt::Foo::__register_module() { ::hilti::rt::detail::registerModule({ "Foo", __hlt_hlto_scope, &__init_module, &__init_globals, &__destroy_globals, nullptr}); }
|
|
// 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_hlto_library_version = <...>
|
|
const char HILTI_EXPORT HILTI_WEAK * __hlt_hlto_bind_to_version = <...>
|
|
const char HILTI_WEAK * __hlt_hlto_scope = <...>
|
|
|