Skip to content

Instantly share code, notes, and snippets.

@tko
Created July 5, 2018 17:58
Show Gist options
  • Save tko/35c1232ea44f4ddca7a059555d096a88 to your computer and use it in GitHub Desktop.
Save tko/35c1232ea44f4ddca7a059555d096a88 to your computer and use it in GitHub Desktop.
meson coverage test
#include <stdio.h>
int main(int argc, char **argv) {
printf("Hello world!\n");
return 0;
}
fn main() {
println!("Hello world!");
}
project('coverage-test', 'c', 'rust')
hello_c = executable('hello_c', 'hello.c')
test('hello_c', hello_c)
hello_rs = executable('hello_rs', 'hello.rs')
test('hello_rs', hello_rs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment