1/*
2 * Copyright 2017, Data61, CSIRO (ABN 41 687 119 230)
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#include <autoconf.h>
8#include <assert.h>
9#include <camkes.h>
10#include <stdio.h>
11
12#ifdef NDEBUG
13    #error "this test application needs assertions enabled"
14#endif
15
16#ifdef CONFIG_CAMKES_OPTIMISATION_CALL_LEAVE_REPLY_CAP
17    #error "this test required lazy save of reply caps to be disabled"
18#endif
19
20int incoming_echo(int x) {
21    return x;
22}
23
24int run(void) {
25    int y = outgoing_echo(42);
26    assert(y == 42);
27    printf("All OK\n");
28    return 0;
29}
30