The advantage of sharing the alarm would be if an occupant was elderly or in poor health then telling the neighbours might be a very good thing.If the smoke alarms are powered from a different supply to the building they are in, then there should at least be warning notices that there is more than one source of supply.
Though I don't see the purpose or reasoning behind having smoke alarms interlinked between separate buildings.
Further investigation would be beneficial.