What about 
$$A=\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix},\qquad B=\begin{pmatrix} 0 & 1 \\ 1 & 0  \end{pmatrix}\quad ?$$