aboutsummaryrefslogtreecommitdiffstats
path: root/test/m0-cpp-smoke
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-07-29 14:39:53 +0000
committerbloodstalker <thabogre@gmail.com>2017-07-29 14:39:53 +0000
commit3fdc87fcd86803603ff8cf58e23dfdeafcffec82 (patch)
tree17fa158fdcabbfab08a3a8a77fc57a73051b2d9f /test/m0-cpp-smoke
parentMerge branch 'master' of https://github.com/bloodstalker/mutator (diff)
downloadmutator-3fdc87fcd86803603ff8cf58e23dfdeafcffec82.tar.gz
mutator-3fdc87fcd86803603ff8cf58e23dfdeafcffec82.zip
smoke test for m0 cpp
Diffstat (limited to 'test/m0-cpp-smoke')
-rw-r--r--test/m0-cpp-smoke/compile_commands.json7
-rw-r--r--test/m0-cpp-smoke/m0-cpp-smoke.cpp96
-rw-r--r--test/m0-cpp-smoke/makefile24
3 files changed, 127 insertions, 0 deletions
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 <cstdlib>
+#include <csignal>
+#include <csetjmp>
+#include <cstdarg>
+#include <typeinfo>
+#include <typeindex>
+#include <type_traits>
+#include <bitset>
+#include <functional>
+#include <utility>
+#include <ctime>
+#include <chrono>
+#include <cstddef>
+#include <initializer_list>
+#include <tuple>
+//c++17
+#if 0
+#include <any>
+#include <optional>
+#include <variant>
+#endif
+#include <new>
+#include <memory>
+#include <scoped_allocator>
+#if 0
+#include <memory_resource>
+#endif
+#include <climits>
+#include <cfloat>
+#include <cstdint>
+#include <cinttypes>
+#include <limits>
+#include <exception>
+#include <stdexcept>
+#include <cassert>
+#include <system_error>
+#include <cerrno>
+#include <cctype>
+#include <cwctype>
+#include <cstring>
+#include <cwchar>
+#include <cuchar>
+#include <string>
+#if 0
+#include <string_view>
+#endif
+#include <array>
+#include <vector>
+#include <deque>
+#include <list>
+#include <forward_list>
+#include <set>
+#include <map>
+#include <unordered_set>
+#include <unordered_map>
+#include <stack>
+#include <queue>
+#include <algorithm>
+#if 0
+#include <execution>
+#endif
+#include <iterator>
+#include <cmath>
+#include <complex>
+#include <valarray>
+#include <random>
+#include <numeric>
+#include <ratio>
+#include <cfenv>
+#include <iosfwd>
+#include <ios>
+#include <istream>
+#include <ostream>
+#include <iostream>
+#include <fstream>
+#include <sstream>
+#include <strstream>
+#include <iomanip>
+#include <streambuf>
+#include <cstdio>
+#include <locale>
+#include <clocale>
+#include <codecvt>
+#include <regex>
+#include <atomic>
+#include <thread>
+#include <mutex>
+#include <shared_mutex>
+#include <future>
+#include <condition_variable>
+#if 0
+#include <filesystem>
+#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."
+