Add a pretty simple test program

This commit is contained in:
Sameer Rahmani 2023-05-08 18:01:54 +01:00
parent 2e1c5f6dd1
commit 12f130e415
Signed by: lxsameer
GPG Key ID: B0A4AF28AB9FD90B
4 changed files with 24 additions and 0 deletions

BIN
tests/1/.ninja_deps Normal file

Binary file not shown.

3
tests/1/.ninja_log Normal file
View File

@ -0,0 +1,3 @@
# ninja log v5
0 0 1683492538462869278 main 6157dd645b7b0062
0 0 1683492538462869278 main-static 92a52c8bbfaceaad

10
tests/1/build.ninja Normal file
View File

@ -0,0 +1,10 @@
cxxflags = -Wall -fuse-ld=lld --sysroot /sysroot
rule cc
command = clang++ $cxxflags -c $in -o $out
rule static-cc
command = clang++ $cxxflags -c $in -o $out
build main: cc main.cpp
build main-static: static-cc main.cpp

11
tests/1/main.cpp Normal file
View File

@ -0,0 +1,11 @@
#include <stdio.h>
#include <string>
#include <memory>
#include <iostream>
int main() {
auto a = std::make_unique<std::string>("boooo");
printf("test_1\n");
std::cout << *a << "\n";
return 0;
}