File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed
test/blackbox-tests/test-cases/ctypes/deps-full-spec.t Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11
11
baz.h)
12
12
(headers
13
13
(preamble
14
- "#include <example.h>\n#include \"%{foo_h}\"\n#include \"%{bar_h}\"\n#include \"baz.h\""))
14
+ "#include <example.h>\n#include \"%{foo_h}\"\n#include \"%{bar_h}\"\n#include \"baz.h\"\n#include \"%{dep:qux.h}\" "))
15
15
(type_description
16
16
(instance Types)
17
17
(functor Type_description))
Original file line number Diff line number Diff line change
1
+ #define QUX_VERSION 1
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ run the executable that tests the library through the cstubs.
8
8
$ LIBEX= $ (realpath " $ PWD /../libexample" )
9
9
$ DYLD_LIBRARY_PATH= " $ LIBEX" LD_LIBRARY_PATH= " $ LIBEX" PKG_CONFIG_PATH= " $ LIBEX /pkgconfig" PKG_CONFIG_ARGN= " --define-prefix" dune exec ./ example. exe
10
10
File " dune" , line 14 , characters 38 -46:
11
- 14 | " #include <example.h>\n #include \" %{ foo_h} \"\n #include \" %{ bar_h} \"\n #include \" baz.h\" " ))
11
+ 14 | " #include <example.h>\n #include \" %{ foo_h} \"\n #include \" %{ bar_h} \"\n #include \" baz.h\"\n #include \" % { dep : qux . h } \" " ))
12
12
^^^^^^^^
13
13
Error: % {foo_h} isn't allowed in this position.
14
14
File " dune" , line 14 , characters 61 -69:
15
- 14 | " #include <example.h>\n #include \" %{ foo_h} \"\n #include \" %{ bar_h} \"\n #include \" baz.h\" " ))
15
+ 14 | " #include <example.h>\n #include \" %{ foo_h} \"\n #include \" %{ bar_h} \"\n #include \" baz.h\"\n #include \" % { dep : qux . h } \" " ))
16
16
^^^^^^^^
17
17
Error: % {bar_h} isn't allowed in this position.
18
18
[1 ]
Original file line number Diff line number Diff line change 1
1
module Types (F : Ctypes.TYPE ) = struct
2
+ open F
3
+
4
+ let qux_version = constant " QUX_VERSION" int
2
5
3
6
end
You can’t perform that action at this time.
0 commit comments