more corner cases for constant references