added test
This commit is contained in:
BIN
test/build/dir/test1.o
Normal file
BIN
test/build/dir/test1.o
Normal file
Binary file not shown.
BIN
test/build/dir/test2.o
Normal file
BIN
test/build/dir/test2.o
Normal file
Binary file not shown.
BIN
test/build/main.o
Normal file
BIN
test/build/main.o
Normal file
Binary file not shown.
8
test/c_config.toml
Normal file
8
test/c_config.toml
Normal file
@@ -0,0 +1,8 @@
|
||||
[general]
|
||||
target = "main"
|
||||
main = "main.c"
|
||||
|
||||
[build]
|
||||
build_dir = "build"
|
||||
cc = "gcc"
|
||||
cflags = "-Wall"
|
||||
8
test/dir/test1.c
Normal file
8
test/dir/test1.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include "test1.h"
|
||||
#include "test2.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void test1() {
|
||||
printf("Hola desde test1\n");
|
||||
test2();
|
||||
}
|
||||
6
test/dir/test1.h
Normal file
6
test/dir/test1.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef TEST1_HEADER
|
||||
#define TEST1_HEADER
|
||||
|
||||
void test1();
|
||||
|
||||
#endif
|
||||
6
test/dir/test2.c
Normal file
6
test/dir/test2.c
Normal file
@@ -0,0 +1,6 @@
|
||||
#include "test2.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void test2() {
|
||||
printf("Hola desde test2\n");
|
||||
}
|
||||
6
test/dir/test2.h
Normal file
6
test/dir/test2.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef TEST2_HEADER
|
||||
#define TEST2_HEADER
|
||||
|
||||
void test2();
|
||||
|
||||
#endif
|
||||
8
test/main.c
Normal file
8
test/main.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "test1.h"
|
||||
|
||||
int main() {
|
||||
printf("Hola desde main\n");
|
||||
test1();
|
||||
}
|
||||
Reference in New Issue
Block a user