diff options
Diffstat (limited to 'test cases/d')
-rw-r--r-- | test cases/d/10 d cpp/cppmain.cpp | 6 | ||||
-rw-r--r-- | test cases/d/3 shared library/sub/meson.build | 1 | ||||
-rw-r--r-- | test cases/d/9 features/app.d | 10 |
3 files changed, 8 insertions, 9 deletions
diff --git a/test cases/d/10 d cpp/cppmain.cpp b/test cases/d/10 d cpp/cppmain.cpp index ff90e3f..bcd8c7a 100644 --- a/test cases/d/10 d cpp/cppmain.cpp +++ b/test cases/d/10 d cpp/cppmain.cpp @@ -6,13 +6,13 @@ int main(int, char**) { // initialize D runtime if (!rt_init()) return 1; - + print_hello(1); - + // terminate D runtime, each initialize call // must be paired with a terminate call. if (!rt_term()) return 1; - + return 0; } diff --git a/test cases/d/3 shared library/sub/meson.build b/test cases/d/3 shared library/sub/meson.build index fb4b996..1599a33 100644 --- a/test cases/d/3 shared library/sub/meson.build +++ b/test cases/d/3 shared library/sub/meson.build @@ -1,2 +1 @@ ldyn = shared_library('stuff', 'libstuff.d', install : true) - diff --git a/test cases/d/9 features/app.d b/test cases/d/9 features/app.d index 05c56ca..ae59be1 100644 --- a/test cases/d/9 features/app.d +++ b/test cases/d/9 features/app.d @@ -41,19 +41,19 @@ void main (string[] args) exit (1); } } - + version (With_VersionInteger) version(3) exit(0); version (With_Debug) debug exit(0); - + version (With_DebugInteger) debug(3) exit(0); - + version (With_DebugIdentifier) debug(DebugIdentifier) exit(0); - + version (With_DebugAll) { int dbg = 0; debug dbg++; @@ -61,7 +61,7 @@ void main (string[] args) debug(3) dbg++; debug(4) dbg++; debug(DebugIdentifier) dbg++; - + if (dbg == 5) exit(0); } |