What is the expected behavior of the following code?