diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-07-18 21:33:50 +0300 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-07-18 21:33:50 +0300 |
commit | 94b767679fc68c51aa0c80bdada35b9978989199 (patch) | |
tree | 711af40c89140a9add7db30cf6a81861a3df1013 /test/main.c | |
parent | 1564f79cfc7d790e15298d28f52b4c5c216ce9e5 (diff) | |
download | ngc-94b767679fc68c51aa0c80bdada35b9978989199.tar.gz ngc-94b767679fc68c51aa0c80bdada35b9978989199.zip |
add supertemplate handling
Diffstat (limited to 'test/main.c')
-rw-r--r-- | test/main.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/test/main.c b/test/main.c deleted file mode 100644 index 489618b..0000000 --- a/test/main.c +++ /dev/null @@ -1,19 +0,0 @@ -#include <stdio.h> -#include "vec.h" - -typedef ints = vec[int](); - -int main() -{ - struct ints a = intscreate(); - for (size_t i = 0; i < 10; ++i) - intsappend(&a, i); - - int sum = 0; - for (size_t i = 0; i < 10; ++i) { - sum += *intsat(&a, i); - } - - printf("%i\n", sum); - intsdestroy(&a); -} |