parent
34d673984d
commit
bcdb84fcbe
7 changed files with 69 additions and 15 deletions
Binary file not shown.
@ -0,0 +1,5 @@ |
||||
int func(); |
||||
|
||||
int main(int argc, char **argv) { |
||||
return func() == 42 ? 0 : 99; |
||||
} |
@ -0,0 +1,19 @@ |
||||
# This test is on its own because it is special. |
||||
# To run the test you need the prebuilt object |
||||
# file for the given platform. |
||||
# |
||||
# Combined with cross compilation this would make |
||||
# the state space explode so let's just keep this |
||||
# in its own subdir so it's not run during cross |
||||
# compilation tests. |
||||
|
||||
project('prebuilt object', 'c') |
||||
|
||||
object = 'linux-amd64.o' |
||||
|
||||
# Remember: do not put source.c in this |
||||
# declaration. Only the prebuilt object. |
||||
e = executable('prog', 'main.c', |
||||
objects : object) |
||||
|
||||
test('objtest', e) |
@ -0,0 +1,8 @@ |
||||
/*
|
||||
* Compile this manually on new platforms and add the |
||||
* object file to revision control and Meson configuration. |
||||
*/ |
||||
|
||||
int func() { |
||||
return 42; |
||||
} |
Loading…
Reference in new issue