Test for #8306

Signed-off-by: Austin Seipp <austin@well-typed.com>