diff --git a/constexpr.cc b/constexpr.cc new file mode 100644 index 0000000..37a32a5 --- /dev/null +++ b/constexpr.cc @@ -0,0 +1,12 @@ +#include +using namespace std; + +int some_constant_func() { + return 41; +} + +int my_int_arr[some_constant_func() + 1]; + +int main(int argc, char * argv []) { + return 0; +}