diff options
| author | GoaLitiuM <goalitium@kapsi.fi> | 2018-08-18 15:13:41 +0300 |
|---|---|---|
| committer | GoaLitiuM <goalitium@kapsi.fi> | 2018-09-27 17:49:48 +0300 |
| commit | 389f012ed29b0c30e6bde178db8d810e8963af14 (patch) | |
| tree | d45031dbe1b04d11f27708b3eb8d43f497e75dde /test cases/d/9 features/app.d | |
| parent | 8776dac773a2e865f6897da62accdce0f5814062 (diff) | |
| download | meson-389f012ed29b0c30e6bde178db8d810e8963af14.tar.gz | |
Additional tests for D version and debug features
Diffstat (limited to 'test cases/d/9 features/app.d')
| -rw-r--r-- | test cases/d/9 features/app.d | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test cases/d/9 features/app.d b/test cases/d/9 features/app.d index 6b43bf055..05c56ca5f 100644 --- a/test cases/d/9 features/app.d +++ b/test cases/d/9 features/app.d @@ -41,6 +41,30 @@ 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++; + debug(2) dbg++; + debug(3) dbg++; + debug(4) dbg++; + debug(DebugIdentifier) dbg++; + + if (dbg == 5) + exit(0); + } // we fail here exit (1); |
