add test for inlining anon functions within inline functions (see #3426)