Pain Split adds the current HP of the user and target Pokémon. It then divides this value by two and sets the HP of both Pokémon to the result.
1 + 1 = 2
2 / 2 = 1
Both Shedinjas would stay at 1 HP
Source: Logic & Bulbapedia/ Pain Split
Also, Shedinja cannot learn Pain Split.