skia2/tests/sksl/errors/IllegalRecursionSimple.glsl

9 lines
306 B
Plaintext
Raw Normal View History

### Compilation failed:
error: 4: potential recursion (function call cycle) not allowed:
int fibonacci(int n)
int fibonacci(int n)
int fibonacci(int n) { return n <= 1 ? n : fibonacci(n - 1) + fibonacci(n - 2); }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1 error