1 /*
2  * Copyright (c) 2024 Intel Corporation.
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 /*
8  * This code demonstrates syscall support.
9  */
10 
11 #include <zephyr/llext/symbol.h>
12 #include <zephyr/sys/printk.h>
13 #include <zephyr/ztest_assert.h>
14 
15 #include "syscalls_ext.h"
16 
test_entry(void)17 void test_entry(void)
18 {
19 	int input = 41;
20 	int output = ext_syscall_ok(input);
21 
22 	printk("Input: %d Expected output: %d Actual output: %d\n",
23 	       input, input + 1, output);
24 	zassert_equal(output, input + 1);
25 }
26 EXPORT_SYMBOL(test_entry);
27