1 /* 2 * Copyright (c) 2020 Intel Corporation. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/kernel.h> 8 #include <zephyr/sys/printk.h> 9 10 #define STACKSIZE 512 11 test(void)12static int test(void) 13 { 14 int a; 15 int b; 16 17 a = 10; 18 b = a * 2; 19 20 return a + b; 21 } 22 main(void)23int main(void) 24 { 25 int ret; 26 27 printk("%s():enter\n", __func__); 28 ret = test(); 29 printk("ret=%d\n", ret); 30 return 0; 31 } 32