Recently a change was made to this test in r294639 which fails because the compiler only generates one of the warnings when the compiler is in C++03 or lower mode.
This change fixes that as well as adds explicit run lines to run the test in C++03 and C++11 modes.