From 3fdc87fcd86803603ff8cf58e23dfdeafcffec82 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sat, 29 Jul 2017 19:09:53 +0430 Subject: smoke test for m0 cpp --- test/m0-cpp-smoke/compile_commands.json | 7 +++ test/m0-cpp-smoke/m0-cpp-smoke.cpp | 96 +++++++++++++++++++++++++++++++++ test/m0-cpp-smoke/makefile | 24 +++++++++ 3 files changed, 127 insertions(+) create mode 100644 test/m0-cpp-smoke/compile_commands.json create mode 100644 test/m0-cpp-smoke/m0-cpp-smoke.cpp create mode 100644 test/m0-cpp-smoke/makefile (limited to 'test/m0-cpp-smoke') diff --git a/test/m0-cpp-smoke/compile_commands.json b/test/m0-cpp-smoke/compile_commands.json new file mode 100644 index 0000000..1a23f8c --- /dev/null +++ b/test/m0-cpp-smoke/compile_commands.json @@ -0,0 +1,7 @@ +[ + { + "command": "c++ -c -I/usr/lib/gcc/x86_64-redhat-linux/6.3.1/include -std=c++14 -o m0-cpp-smoke.o m0-cpp-smoke.cpp", + "directory": "/home/bloodstalker/devi/hell2/test/m0-cpp-smoke", + "file": "/home/bloodstalker/devi/hell2/test/m0-cpp-smoke/m0-cpp-smoke.cpp" + } +] \ No newline at end of file diff --git a/test/m0-cpp-smoke/m0-cpp-smoke.cpp b/test/m0-cpp-smoke/m0-cpp-smoke.cpp new file mode 100644 index 0000000..5fd87aa --- /dev/null +++ b/test/m0-cpp-smoke/m0-cpp-smoke.cpp @@ -0,0 +1,96 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +//c++17 +#if 0 +#include +#include +#include +#endif +#include +#include +#include +#if 0 +#include +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#if 0 +#include +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#if 0 +#include +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#if 0 +#include +#endif + +int main(int argc, char** argv) +{} diff --git a/test/m0-cpp-smoke/makefile b/test/m0-cpp-smoke/makefile new file mode 100644 index 0000000..dfec4a2 --- /dev/null +++ b/test/m0-cpp-smoke/makefile @@ -0,0 +1,24 @@ +TARGET=m0-cpp-smoke +CXX?=clang++ +# you should change the include path to one that is right for you +CXX_FLAGS=-I/usr/lib/gcc/x86_64-redhat-linux/6.3.1/include -std=c++14 + +.DEFAULT:all clean + +.PHONY:all clean $(TARGET) help + +all:$(TARGET) + +.cpp.o: + $(CXX) $(CXX_FLAGS) -c $< -o $@ + +$(TARGET): m0-cpp-smoke.o + $(CXX) $^ $(LD_FLAGS) -o $@ + +clean: + rm -f *.o *~ $(TARGET) + +help: + @echo "the makfile for the bruiser test file." + @echo "there is the taget itself, all and clean." + -- cgit v1.2.3