Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
skia
/
7da0657fdafcda00fd219f018ccae6af44ac4871
/
.
/
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
);
}