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

13 lines
471 B
D

module apply_strings_runme;
import apply_strings.apply_strings;
const char[] TEST_MESSAGE = "A message from target language to the C++ world and back again.";
void main() {
if (UCharFunction(TEST_MESSAGE) != TEST_MESSAGE) throw new Exception("UCharFunction failed");
if (SCharFunction(TEST_MESSAGE) != TEST_MESSAGE) throw new Exception("SCharFunction failed");
auto pChar = CharFunction(null);
if (pChar !is null) throw new Exception("CharFunction failed");
}