Sign in
qemu
/
qemu
/
55974f35eac3d8166a8dee498b1efee2ef9663c5
/
.
/
tests
/
tcg
/
tricore
/
c
/
test_context_save_areas.c
blob: a300ee2f9cbff0fe7f8cf8f0e031c370c16eb3c4 [
file
] [
log
] [
blame
]
#include
"testdev_assert.h"
static
int
fib
(
int
n
)
{
if
(
n
==
1
||
n
==
2
)
{
return
1
;
}
return
fib
(
n
-
2
)
+
fib
(
n
-
1
);
}
int
main
(
int
argc
,
char
**
argv
)
{
testdev_assert
(
fib
(
10
)
==
55
);
return
0
;
}