[ClangAstParser] Adds constexpr dummy test
-#include <vector>
+#include <array>
-class Box {
+class A
+{
public:
- Box(std::initializer_list<int>) {};
-
+ static constexpr int number_of_sizes = 3;
+ static constexpr std::array<int, number_of_sizes> SPACE{{512, 256, 128}};
};
-int main() {
-
- std::vector<int> v = {};
- Box b = {};
-
-/*
- std::vector<int> t = std::vector<int> {};
- t = {};
- std::vector<int> v = {};
- Box b = {};
-
-
-
- // allocates memory for a class
- Box * box = new Box;
- // allocates memory for a class, with nothrow
- Box * box2 = new (std::nothrow) Box;
- // allocates and constructs five objects (nothrow):
- std::vector<int> * p2 = new (std::nothrow) std::vector<int>[5];
- */
- return 0;
-}
-
+constexpr std::array<int, A::number_of_sizes> A::SPACE;
