When aniline reacts with chloroform and alcoholic KOH it gives an offensive smelling liquid i.e., phenyl isocyanide as product. It is called as isocyanide test. It is given by aliphatic and aromatic primary amines.
phenyl isocyanide on reduction using LiAlH4 gives dimethyl amine. C6H5−N+≡C→LiAlH4C6H5−NH−CH3
Two hydrogen molecules are added across N≡C triple bond.