blob: d58f2d846d0066bd70f574c2d15e93943dc755b7 [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); }
/*%%*
potential recursion (function call cycle) not allowed:
int fibonacci(int n)
int fibonacci(int n)
*%%*/