Skip to content

Commit fa124b7

Browse files
authored
test: add object file for foreign library test (#11710)
xcode doesn't like empty archives Signed-off-by: Rudi Grinberg <[email protected]>
1 parent 50c8238 commit fa124b7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/blackbox-tests/test-cases/foreign-stubs/foreign-library-enabled-if.t

+7-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ Interaction of the foreign_library stanza and the enabled_if field.
44
> (lang dune 3.18)
55
> EOF
66

7+
$ cat > a.c <<EOF
8+
> int foo() {
9+
> return 1;
10+
> }
11+
> EOF
12+
713
We should allow multiple foreign libraries to define the same archive if only
814
one of them is enabled:
915

@@ -26,7 +32,6 @@ one of them is enabled:
2632
> (archive_name a)
2733
> (names a))
2834
> EOF
29-
$ cat > a.c
3035
$ dune build
3136

3237

@@ -52,7 +57,7 @@ illegal:
5257
> (archive_name a)
5358
> (names a))
5459
> EOF
55-
$ cat > a.c
60+
5661
$ dune build
5762
File "dune", line 5, characters 8-9:
5863
5 | (names a))

0 commit comments

Comments
 (0)