* Tests that syslibset's that appear in the base linker are effective when
* creating the command line for a linker that extends it.
*/
public void testExtendsSysLibSet() {
LinkerDef baseLinker = new LinkerDef();
SystemLibrarySet libset = new SystemLibrarySet();
LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef(
baseLinker);
libset.setProject(baseLinker.getProject());
CUtil.StringArrayBuilder libs = new CUtil.StringArrayBuilder("advapi32");
libset.setLibs(libs);
baseLinker.addSyslibset(libset);
CommandLineLinkerConfiguration config = (CommandLineLinkerConfiguration)
getConfiguration(extendedLinker);
String[] libnames = config.getLibraryNames();
assertEquals(1, libnames.length);