Package com.github.maven_nar.cpptasks.sun

Examples of com.github.maven_nar.cpptasks.sun.ForteCCCompiler


        ForteCCCompiler compiler = ForteCCCompiler.getInstance();
        assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler
                .bid("foo.c++"));
    }
    public void testBidPreprocessed() {
        ForteCCCompiler compiler = ForteCCCompiler.getInstance();
        assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler
                .bid("foo.i"));
    }
View Full Code Here


        ForteCCCompiler compiler = ForteCCCompiler.getInstance();
        assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler
                .bid("foo.i"));
    }
    public void testBidAssembly() {
        ForteCCCompiler compiler = ForteCCCompiler.getInstance();
        assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler
                .bid("foo.s"));
    }
View Full Code Here

    }
    /**
     * Tests command line switches for warning = 0
     */
    public void testWarningLevel0() {
        ForteCCCompiler compiler = ForteCCCompiler.getInstance();
        Vector args = new Vector();
        compiler.addWarningSwitch(args, 0);
        assertEquals(1, args.size());
        assertEquals("-w", args.elementAt(0));
    }
View Full Code Here

    }
    /**
     * Tests command line switches for warning = 1
     */
    public void testWarningLevel1() {
        ForteCCCompiler compiler = ForteCCCompiler.getInstance();
        Vector args = new Vector();
        compiler.addWarningSwitch(args, 1);
        assertEquals(0, args.size());
    }
View Full Code Here

    }
    /**
     * Tests command line switches for warning = 2
     */
    public void testWarningLevel2() {
        ForteCCCompiler compiler = ForteCCCompiler.getInstance();
        Vector args = new Vector();
        compiler.addWarningSwitch(args, 2);
        assertEquals(0, args.size());
    }
View Full Code Here

    }
    /**
     * Tests command line switches for warning = 3
     */
    public void testWarningLevel3() {
        ForteCCCompiler compiler = ForteCCCompiler.getInstance();
        Vector args = new Vector();
        compiler.addWarningSwitch(args, 3);
        assertEquals(1, args.size());
        assertEquals("+w", args.elementAt(0));
    }
View Full Code Here

    }
    /**
     * Tests command line switches for warning = 4
     */
    public void testWarningLevel4() {
        ForteCCCompiler compiler = ForteCCCompiler.getInstance();
        Vector args = new Vector();
        compiler.addWarningSwitch(args, 4);
        assertEquals(1, args.size());
        assertEquals("+w2", args.elementAt(0));
    }
View Full Code Here

    }
    /**
     * Tests command line switches for warning = 5
     */
    public void testWarningLevel5() {
        ForteCCCompiler compiler = ForteCCCompiler.getInstance();
        Vector args = new Vector();
        compiler.addWarningSwitch(args, 5);
        assertEquals(2, args.size());
        assertEquals("+w2", args.elementAt(0));
        assertEquals("-xwe", args.elementAt(1));
    }
View Full Code Here

TOP

Related Classes of com.github.maven_nar.cpptasks.sun.ForteCCCompiler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.