Add a pretty simple test program
This commit is contained in:
parent
2e1c5f6dd1
commit
12f130e415
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
# ninja log v5
|
||||
0 0 1683492538462869278 main 6157dd645b7b0062
|
||||
0 0 1683492538462869278 main-static 92a52c8bbfaceaad
|
|
@ -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
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue