That would make them the first country to do so, I think. Others have tried and nothing has worked. But China will likely become rich before it gets old, so it may not matter.
Their population is declining already and they have a very long way to go before being considered "rich", so I haven't seen many projections for what you said. If you meant it, I'd be curious to know why.
IMO, India likely won't make this transition. It's population is still growing but it's birth rate is sinking fast (like most everywhere else).