2#include "modules/Module.h"
4extern "C" void module_runtime_test_event(
unsigned int event);
5extern "C" bool module_runtime_test_entry();
7#if defined(PEDIGREE_RUNTIME_CONSUMER)
8extern "C" unsigned int module_runtime_fixture_value();
10extern "C" EXPORTED_PUBLIC
unsigned int module_runtime_fixture_value() {
17 module_runtime_test_event(1);
20 module_runtime_test_event(2);
21#if defined(PEDIGREE_RUNTIME_CONSUMER)
22 if (module_runtime_fixture_value() != 42)
25 return module_runtime_test_entry();
28 module_runtime_test_event(3);
31 module_runtime_test_event(4);
33void (*
const constructor)()
SECTION(
".ctors")
USED = initialise;
34void (*
const destructor)()
SECTION(
".dtors")
USED = finalise;
37#if defined(PEDIGREE_RUNTIME_UNDECLARED)
38MODULE_INFO(
"runtime-undeclared", &entry, &exit,
"module-runtime-tests");
39#elif defined(PEDIGREE_RUNTIME_CONSUMER)
40MODULE_INFO(
"runtime-consumer", &entry, &exit,
"module-runtime-tests",
"runtime-fixture-0");
42MODULE_INFO(
"runtime-fixture-0", &entry, &exit,
"module-runtime-tests");