Sign in
cobalt
/
cobalt
/
08336faa599332e3e3bf29b7ad38ef023018b55e
/
.
/
third_party
/
skia_next
/
third_party
/
skia
/
resources
/
sksl
/
runtime_errors
/
IllegalRecursionSimple.rts
blob: cdffbc376e96cac7753e598df960d9c1b6646a19 [
file
] [
log
] [
blame
]
// Expect 1 error
// Simple recursion is not allowed, even with branching:
int
fibonacci
(
int
n
)
{
return
n
<=
1
?
n
:
fibonacci
(
n
-
1
)
+
fibonacci
(
n
-
2
);
}