Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/libphobos/testsuite/libphobos.unittest/customhandler.d
2023-03-06 14:48:14 +01:00

21 lines
581 B
D

import core.runtime;
UnitTestResult customModuleUnitTester()
{
version(GoodTests) return UnitTestResult(100, 100, false, true);
version(FailedTests) return UnitTestResult(100, 0, false, true);
version(NoTests) return UnitTestResult(0, 0, true, false);
version(FailNoPrintout) return UnitTestResult(100, 0, false, false);
version(PassNoPrintout) return UnitTestResult(100, 100, false, false);
}
shared static this()
{
Runtime.extendedModuleUnitTester = &customModuleUnitTester;
}
void main()
{
import core.stdc.stdio;
fprintf(stderr, "main\n");
}