add simple test for unused buffer variables in a function