The Carbylamine test is a test for the detection of primary amines. (both aliphatic and aromatic amines)
In this test, the analyte is heated with alcoholic potassium hydroxide and chloroform.
If a primary amine is present, the foul smelling compound isocyanide is formed.
$
R - NH _{2}+ CHCl _{3}+3 KOH \rightarrow RN ^{+} \equiv C ^{-}+3 KCl +3 H _{2} O
$