String[] output = compiler.getOutputFileNames(input, null);
} catch (java.lang.IllegalStateException ex) {
}
}
public void testGetOutputFileName2() {
CompilerConfiguration compiler = create();
String[] output = compiler.getOutputFileNames("c:/foo\\bar\\hello.c", null);
assertEquals("hello" + getObjectFileExtension(), output[0]);
output = compiler.getOutputFileNames("c:/foo\\bar/hello.c", null);
assertEquals("hello" + getObjectFileExtension(), output[0]);
output = compiler.getOutputFileNames("hello.c", null);
assertEquals("hello" + getObjectFileExtension(), output[0]);
output = compiler.getOutputFileNames("c:/foo\\bar\\hello.h", null);
assertEquals(0, output.length);
output = compiler.getOutputFileNames("c:/foo\\bar/hello.h", null);
assertEquals(0, output.length);
}