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 /tests/xok/tmpl.c | |
parent | 1564f79cfc7d790e15298d28f52b4c5c216ce9e5 (diff) | |
download | ngc-94b767679fc68c51aa0c80bdada35b9978989199.tar.gz ngc-94b767679fc68c51aa0c80bdada35b9978989199.zip |
add supertemplate handling
Diffstat (limited to 'tests/xok/tmpl.c')
-rw-r--r-- | tests/xok/tmpl.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/xok/tmpl.c b/tests/xok/tmpl.c new file mode 100644 index 0000000..7b514dd --- /dev/null +++ b/tests/xok/tmpl.c @@ -0,0 +1,17 @@ +#include <stdio.h> + +typedef tmpl[](){ + int <>_ok() + { + return 20; + } +}; + +typedef inst = tmpl[](); + +int main() +{ + int ok = inst_ok(); + if (ok == 20) + puts("OK"); +} |