test: new codegen tests, rename hello.
This commit is contained in:
parent
53e934c2ab
commit
40f74341f3
8 changed files with 65 additions and 0 deletions
12
src/test/codegen/stack-alloc-string-slice.cc
Normal file
12
src/test/codegen/stack-alloc-string-slice.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 };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue