Debian Codegraph @

gcc/testsuite/gdc.test/runnable/test37.d

raw
1 // PERMUTE_ARGS:
2 // REQUIRED_ARGS: -Jrunnable/extra-files
3 // EXTRA_FILES: extra-files/foo37.txt extra-files/std14198/uni.d
4
5 import core.stdc.stdio;
6
7 void main()
8 {
9 auto s = import("foo37.txt");
10 printf("%.*s\n", cast(int)s.length, s.ptr);
11 // also want to ensure that we can access
12 // imports in a subdirectory of the -J path
13 s = import("std14198/uni.d");
14 printf("%.*s\n", cast(int)s.length, s.ptr);
15 }