In general, children born in Sweden to foreign parents do not acquire Swedish citizenship at birth, although if they remain resident in Sweden they may become Swedish later on.
CITIZENSHIP: Malagasy citizenship is based upon Ordinance No.60-064, dated July 22, 1960.
Malagasy nationality law is based on descent from the father (jus sanguinis).
BY BIRTH: Birth within the Republic of Madagascar does not automatically confer citizenship.
Citizenship is only granted automatically in cases of abandoned children.
Child, born in wedlock, whose father is a citizen of Madagascar.
Child, born out of wedlock to Malagasy mother, when the child’s father is stateless or unknown
CITIZENSHIP: Citizenship laws are based upon the Pakistan Citizenship Act of April 13, 1951.
BY BIRTH: Child born after April 13, 1951, in the territory of Pakistan, regardless of the country
of birth. The exceptions are the children of certain diplomatic personnel.
Persons born in Pakistani territory on or before April 13, 1951 are granted citizenship
Person who was born in Pakistan or whose parents or grandparents were born in Pakistan and who had permanently resided in the country since August 14, 1947.
A person naturalized as a British subject in Pakistan, and who had renounced any foreign citizenship acquired after birth.
Person who before April 13, 1951 had migrated to Pakistan from the Indo-Pakistan
subcontinent with the intention of residing permanently in Pakistan.
Child born after April 13, 1951 of a native-born Pakistani father, regardless of the child’s country of birth.
Child born abroad after April 13, 1951, of a Pakistani father not born in Pakistan, is a citizen only if the child is registered at the nearest Pakistani Consulate or Mission.
My opinion: if the baby is born before you get married he or she will be Malagasy; if born after marriage he or she will be Pakistani if the father was native born in Pakistan.
You each might want to get one of these: