blob: 8981d9e25cc1dc2113dd476b35279179c806558d [file] [log] [blame]
// Expect 1 error
// Straightforward mutual recursion (not allowed)
bool is_even(int n);
bool is_odd (int n) { return n == 0 ? false : is_even(n - 1); }
bool is_even(int n) { return n == 0 ? true : is_odd (n - 1); }
/*%%*
potential recursion (function call cycle) not allowed:
bool is_odd(int n)
bool is_even(int n)
bool is_odd(int n)
*%%*/