Test for enumerator use inside declaration