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


Sunroof switch removal/installationMazda 6 Service Manual: Foreword
When the customer reports a vehicle malfunction, check the malfunction
indicator lamp (MIL), HOLD indicator light flashing, and PCM memory for
diagnostic trouble code (DTC), then diagnose the malfunction according to
following flowchart.
- If the DTC exists, diagnose the applicable ...
Mazda 6 Service Manual: No.6 windshield fogged
When performing an asterisked (*) troubleshooting inspection, shake the
wiring harness and connectors while doing the inspection to discover whether
poor contact points are the cause of any intermittent malfunctions. If there
is a problem, check to make sure connectors, terminals and wir ...