diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2021-07-22 11:56:54 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-09-07 14:18:37 +0200 |
| commit | bb70277e96c183ae3f07ecfdd11be0ee5257112e (patch) | |
| tree | 7bd7c0382866d693b88d50d2fcb2194a5d677355 /test cases/unit | |
| parent | 8596b3bcd12371ad16e5ffbd3e34953603cd1484 (diff) | |
| download | meson-bb70277e96c183ae3f07ecfdd11be0ee5257112e.tar.gz | |
add test case for mixed language link tests
Diffstat (limited to 'test cases/unit')
| -rw-r--r-- | test cases/unit/97 compiler.links file arg/meson.build | 11 | ||||
| -rw-r--r-- | test cases/unit/97 compiler.links file arg/test.c | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test cases/unit/97 compiler.links file arg/meson.build b/test cases/unit/97 compiler.links file arg/meson.build new file mode 100644 index 000000000..c409dcbd1 --- /dev/null +++ b/test cases/unit/97 compiler.links file arg/meson.build @@ -0,0 +1,11 @@ +project('test', ['c', 'cpp']) + +cc = meson.get_compiler('c') +cxx = meson.get_compiler('cpp') + +# used by run_unittests.py to grab the path to the C and C++ compilers +assert(cc.compiles(files('test.c'))) +assert(cxx.compiles(files('test.c'))) + +assert(cc.links(files('test.c'))) +assert(cxx.links(files('test.c'))) diff --git a/test cases/unit/97 compiler.links file arg/test.c b/test cases/unit/97 compiler.links file arg/test.c new file mode 100644 index 000000000..78f2de106 --- /dev/null +++ b/test cases/unit/97 compiler.links file arg/test.c @@ -0,0 +1 @@ +int main(void) { return 0; } |
