}
/**
* Tests command lines switches for warning = 5
*/
public void testWarningLevel5() {
GccCompatibleCCompiler compiler = create();
Vector args = new Vector();
compiler.addWarningSwitch(args, 5);
assertEquals(3, args.size());
assertEquals("-Werror", args.elementAt(0));
assertEquals("-W", args.elementAt(1));
assertEquals("-Wall", args.elementAt(2));
}