2018-12-11 09:03:37 -08:00
|
|
|
#include <solana_sdk.h>
|
|
|
|
|
|
|
|
struct foo {const uint8_t *input;};
|
|
|
|
void foo(const uint8_t *input, struct foo foo) ;
|
|
|
|
|
2019-09-06 16:05:01 -07:00
|
|
|
extern uint32_t entrypoint(const uint8_t *input) {
|
2018-12-11 09:03:37 -08:00
|
|
|
struct foo f;
|
|
|
|
f.input = input;
|
|
|
|
foo(input, f);
|
2019-09-06 16:05:01 -07:00
|
|
|
return SUCCESS;
|
2018-12-11 09:03:37 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
void foo(const uint8_t *input, struct foo foo) {
|
|
|
|
sol_log_64(0, 0, 0, (uint64_t)input, (uint64_t)foo.input);
|
|
|
|
sol_assert(input == foo.input);
|
|
|
|
}
|