1/*
2 * Copyright 2017, Data61, CSIRO (ABN 41 687 119 230)
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#include <camkes.h>
8#include <stdio.h>
9
10int run(void) {
11    MyType_t a, b, c, d;
12
13    a.i = 1;
14    b.i = 2;
15    c.i = 3;
16    d.i = 4;
17
18    printf("Beforehand we have (ret)%d, (in)%d, (out)%d, (inout)%d\n", a.i, b.i, c.i, d.i);
19    a = p_rotate(b, &c, &d);
20    printf("Afterwards we have (ret)%d, (in)%d, (out)%d, (inout)%d\n", a.i, b.i, c.i, d.i);
21    return 0;
22}
23