diff options
| author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-10-25 14:14:44 +0530 |
|---|---|---|
| committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-10-25 14:36:47 +0530 |
| commit | f3bb6bb227af00411346cfe3d901532c00ceeb55 (patch) | |
| tree | 88a1fdc6c522efdc4397c7396bb89a0dc3059ce8 /test cases | |
| parent | 706425abd172df6686aab40f110b341c62721361 (diff) | |
| download | meson-f3bb6bb227af00411346cfe3d901532c00ceeb55.tar.gz | |
Add a unit test to ensure object file order
Part of the changes to make input and output filenames in targets be
deterministic.
Diffstat (limited to 'test cases')
| -rw-r--r-- | test cases/common/5 linkstatic/libfile2.c | 3 | ||||
| -rw-r--r-- | test cases/common/5 linkstatic/libfile3.c | 3 | ||||
| -rw-r--r-- | test cases/common/5 linkstatic/libfile4.c | 3 | ||||
| -rw-r--r-- | test cases/common/5 linkstatic/meson.build | 2 |
4 files changed, 10 insertions, 1 deletions
diff --git a/test cases/common/5 linkstatic/libfile2.c b/test cases/common/5 linkstatic/libfile2.c new file mode 100644 index 000000000..89780f593 --- /dev/null +++ b/test cases/common/5 linkstatic/libfile2.c @@ -0,0 +1,3 @@ +int func2() { + return 2; +} diff --git a/test cases/common/5 linkstatic/libfile3.c b/test cases/common/5 linkstatic/libfile3.c new file mode 100644 index 000000000..5e0d08bb9 --- /dev/null +++ b/test cases/common/5 linkstatic/libfile3.c @@ -0,0 +1,3 @@ +int func3() { + return 3; +} diff --git a/test cases/common/5 linkstatic/libfile4.c b/test cases/common/5 linkstatic/libfile4.c new file mode 100644 index 000000000..3645c31f1 --- /dev/null +++ b/test cases/common/5 linkstatic/libfile4.c @@ -0,0 +1,3 @@ +int func4() { + return 4; +} diff --git a/test cases/common/5 linkstatic/meson.build b/test cases/common/5 linkstatic/meson.build index c1cb8b639..1f02a5c88 100644 --- a/test cases/common/5 linkstatic/meson.build +++ b/test cases/common/5 linkstatic/meson.build @@ -1,6 +1,6 @@ project('static library linking test', 'c') -lib = build_target('mylib', 'libfile.c', target_type : 'static_library') +lib = build_target('mylib', 'libfile.c', 'libfile2.c', 'libfile3.c', 'libfile4.c', target_type : 'static_library') exe = executable('prog', 'main.c', link_with : lib) test('runtest', exe) |
