diff --git a/upptst/STL/STL.cpp b/upptst/STL/STL.cpp new file mode 100644 index 000000000..0d75e4bb6 --- /dev/null +++ b/upptst/STL/STL.cpp @@ -0,0 +1,34 @@ +#include + +using namespace Upp; + +template +void Check() +{ + T a; + std::includes(a.begin(), a.end(), a.begin(), a.end()); + + const T& b = a; + std::includes(b.begin(), b.end(), b.begin(), b.end()); +} + +CONSOLE_APP_MAIN +{ + Check< Vector > (); + Check< Array > (); + + Check< BiVector > (); + Check< BiArray > (); + + Check< Index > (); + Check< ArrayIndex > (); + Check< VectorMap > (); + Check< ArrayMap > (); + + Check< InVector > (); + Check< InArray > (); + + Check< SortedIndex > (); + Check< SortedVectorMap > (); + Check< SortedArrayMap > (); +} diff --git a/upptst/STL/STL.upp b/upptst/STL/STL.upp new file mode 100644 index 000000000..df1731907 --- /dev/null +++ b/upptst/STL/STL.upp @@ -0,0 +1,9 @@ +uses + Core; + +file + STL.cpp; + +mainconfig + "" = "SSE2"; + diff --git a/upptst/STL/init b/upptst/STL/init new file mode 100644 index 000000000..ae94b3635 --- /dev/null +++ b/upptst/STL/init @@ -0,0 +1,4 @@ +#ifndef _STL_icpp_init_stub +#define _STL_icpp_init_stub +#include "Core/init" +#endif