CLanguage icon indicating copy to clipboard operation
CLanguage copied to clipboard

Simple test

Open SuperJMN opened this issue 7 years ago • 0 comments

Hello @praeclarum! I'm trying to use your CLanguage. I'm a bit lost.

This is what I have so far:

public class UnitTest1
{
    [Fact]
    public void Test1()
    {
        var sut = new CCompiler(new CompilerOptions(new MachineInfo()));
        sut.AddDocument(new Document("file.c", "int main { return 123; }"));
        var ex = sut.Compile();
    }
}

How do I get the 123 that results after the execution of the program?

SuperJMN avatar Jan 07 '19 17:01 SuperJMN