1. Remove the sunroof switch.
2. Inspect for continuity between the sunroof switch terminals using an ohmmeter.


Sunroof switch removal/installationMazda 6 Service Manual: Engine Exhaust (Carbon monoxide)
WARNING
Do not drive your vehicle if you smell exhaust gas inside the vehicle:
Engine exhaust gas is dangerous. This gas contains carbon monoxide (CO), which is
colorless, odorless, and poisonous. When inhaled, it can cause loss of consciousness
and death. If you smell exhaust gas inside the ...
Mazda 6 Service Manual: Turning the Engine Off
WARNINGDo not stop the engine while the vehicle is moving: Stopping the
engine while the vehicle is moving for any reason other than in an emergency is
dangerous. Stopping the engine while the vehicle is moving will result in reduced
braking ability due to the loss of power braking, which coul ...