wire up makefile to run codegen tests and add one to start
This commit is contained in:
parent
e14cd392a4
commit
fbc5bb4c0a
4 changed files with 35 additions and 1 deletions
12
src/test/codegen/hello.cc
Normal file
12
src/test/codegen/hello.cc
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#include <stddef.h>
|
||||
|
||||
struct slice {
|
||||
char const *p;
|
||||
size_t len;
|
||||
};
|
||||
|
||||
extern "C"
|
||||
void test() {
|
||||
struct slice s = { .p = "hello",
|
||||
.len = 5 };
|
||||
}
|
||||
4
src/test/codegen/hello.rs
Normal file
4
src/test/codegen/hello.rs
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#[no_mangle]
|
||||
fn test() {
|
||||
let _x = "hello";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue