| /* |
| * Copyright 2017, Data61, CSIRO (ABN 41 687 119 230) |
| * |
| * SPDX-License-Identifier: BSD-2-Clause |
| */ |
| |
| #include <autoconf.h> |
| #include <assert.h> |
| #include <camkes.h> |
| #include <stdio.h> |
| |
| #ifdef NDEBUG |
| #error "this test application needs assertions enabled" |
| #endif |
| |
| #ifdef CONFIG_CAMKES_OPTIMISATION_CALL_LEAVE_REPLY_CAP |
| #error "this test required lazy save of reply caps to be disabled" |
| #endif |
| |
| int incoming_echo(int x) |
| { |
| return x; |
| } |
| |
| int run(void) |
| { |
| int y = outgoing_echo(42); |
| assert(y == 42); |
| printf("All OK\n"); |
| return 0; |
| } |