aboutsummaryrefslogtreecommitdiffstats
path: root/lib/entityx/cxx11/c++11-test-constexpr-N2235.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2022-11-15 07:35:07 -0500
committerClyne Sullivan <clyne@bitgloo.com>2022-11-15 07:35:07 -0500
commita056c15dd3781b4f6bb89fdd738b14cafc00cd85 (patch)
tree1775a5913c7bc87563b6b4a29c63514cf15b4185 /lib/entityx/cxx11/c++11-test-constexpr-N2235.cpp
parent1405d648b6264cfda7c46f5b251258335abaee83 (diff)
parent57013add5b7c524086272be7d395f9ec5109bde2 (diff)
merge branch lib-cleanup into ui
Diffstat (limited to 'lib/entityx/cxx11/c++11-test-constexpr-N2235.cpp')
-rw-r--r--lib/entityx/cxx11/c++11-test-constexpr-N2235.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/entityx/cxx11/c++11-test-constexpr-N2235.cpp b/lib/entityx/cxx11/c++11-test-constexpr-N2235.cpp
deleted file mode 100644
index ed62451..0000000
--- a/lib/entityx/cxx11/c++11-test-constexpr-N2235.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-constexpr int square(int x)
-{
- return x*x;
-}
-
-constexpr int the_answer()
-{
- return 42;
-}
-
-int main()
-{
- int test_arr[square(3)];
- bool ret = (
- (square(the_answer()) == 1764) &&
- (sizeof(test_arr)/sizeof(test_arr[0]) == 9)
- );
- return ret ? 0 : 1;
-}