From 930be83656eb0e6dc968f672e889d43aaa166550 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 19 Mar 2026 23:15:48 +0800 Subject: add native aot --- tests/projects/csharp/native_aot/src/app/main.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/projects/csharp/native_aot/src/app/main.cpp (limited to 'tests/projects/csharp/native_aot/src/app/main.cpp') diff --git a/tests/projects/csharp/native_aot/src/app/main.cpp b/tests/projects/csharp/native_aot/src/app/main.cpp new file mode 100644 index 000000000..070ad7de6 --- /dev/null +++ b/tests/projects/csharp/native_aot/src/app/main.cpp @@ -0,0 +1,12 @@ +#include + +extern "C" { + int cs_add(int a, int b); + int cs_multiply(int a, int b); +} + +int main() { + printf("cs_add(3,4)=%d\n", cs_add(3, 4)); + printf("cs_multiply(5,6)=%d\n", cs_multiply(5, 6)); + return 0; +} -- cgit v1.3.1