The following two lines are both invalid so behaviour is technically undefined but they should be the same.