1 /**
2    Tests for runtime arguments.
3  */
4 module it.c.compile.runtime_args;
5 
6 
7 import it;
8 
9 @("include paths")
10 @safe unittest {
11     with(immutable IncludeSandbox()) {
12         writeFile("includes/hdr.h",
13                   q{
14                       int add(int i, int j);
15                   });
16         writeFile("main.dpp",
17                   `
18                       #include "hdr.h"
19                       void main() {
20                           int ret = add(2, 3);
21                       }
22                   `);
23         runPreprocessOnly(
24             "--include-path",
25             inSandboxPath("includes"),
26             "main.dpp",
27         );
28 
29         shouldCompile("main.d");
30     }
31 }