1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-30 05:24:26 +01:00

First approach towards moving to CMake

This commit is contained in:
Santiago Alessandri
2014-08-22 11:01:07 -07:00
parent d2f0cd0686
commit fb7dbed58a
27 changed files with 751 additions and 84 deletions

View File

@@ -0,0 +1,19 @@
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;
}