The gas formed in the reaction of Mg with HCl burns.
Click for movie.
What is the gas?
H2   CO2     O2