Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/d/constover_runme.1.d
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

32 lines
739 B
D

module constover_runme;
import constover.constover;
import constover.Foo;
void main() {
char[] p = test("test");
if (p != "test")
throw new Exception("test failed!");
p = test_pconst("test");
if (p != "test_pconst")
throw new Exception("test_pconst failed!");
auto f = new Foo();
p = f.test("test");
if (p != "test")
throw new Exception("member-test failed!");
p = f.test_pconst("test");
if (p != "test_pconst")
throw new Exception("member-test_pconst failed!");
p = f.test_constm("test");
if (p != "test_constmethod")
throw new Exception("member-test_constm failed!");
p = f.test_pconstm("test");
if (p != "test_pconstmethod")
throw new Exception("member-test_pconstm failed!");
}