mbed-os/libraries/tests/mbed/call_before_main/main.cpp

16 lines
291 B
C++

#include "test_env.h"
namespace {
bool mbed_main_called = false;
}
extern "C" void mbed_main() {
printf("MBED: mbed_main() call before main()\r\n");
mbed_main_called = true;
}
int main() {
printf("MBED: main() starts now!\r\n");
notify_completion(mbed_main_called);
}