wire up makefile to run codegen tests and add one to start

This commit is contained in:
Graydon Hoare 2013-07-06 01:03:03 -07:00
parent e14cd392a4
commit fbc5bb4c0a
4 changed files with 35 additions and 1 deletions

12
src/test/codegen/hello.cc Normal file
View 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 };
}

View file

@ -0,0 +1,4 @@
#[no_mangle]
fn test() {
let _x = "hello";
}