summaryrefslogtreecommitdiff
path: root/tests/projects/csharp/native_aot/src
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-20 22:33:30 +0800
committerruki <[email protected]>2026-03-20 22:33:30 +0800
commit2b0964deaf94355eea91dff12d017525b49c3737 (patch)
tree8fc1d3decacbf9d2371ef58f96ebbad13316627e /tests/projects/csharp/native_aot/src
parentfaac0865a79ef38c47bb81d7fa3b42f05ace5538 (diff)
remove native_aot
Diffstat (limited to 'tests/projects/csharp/native_aot/src')
-rw-r--r--tests/projects/csharp/native_aot/src/app/main.cpp12
-rw-r--r--tests/projects/csharp/native_aot/src/cslib/MathLib.cs9
2 files changed, 0 insertions, 21 deletions
diff --git a/tests/projects/csharp/native_aot/src/app/main.cpp b/tests/projects/csharp/native_aot/src/app/main.cpp
deleted file mode 100644
index 070ad7de6..000000000
--- a/tests/projects/csharp/native_aot/src/app/main.cpp
+++ /dev/null
@@ -1,12 +0,0 @@
-#include <stdio.h>
-
-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;
-}
diff --git a/tests/projects/csharp/native_aot/src/cslib/MathLib.cs b/tests/projects/csharp/native_aot/src/cslib/MathLib.cs
deleted file mode 100644
index 83255a4b3..000000000
--- a/tests/projects/csharp/native_aot/src/cslib/MathLib.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using System.Runtime.InteropServices;
-
-public static class MathLib {
- [UnmanagedCallersOnly(EntryPoint = "cs_add")]
- public static int Add(int a, int b) => a + b;
-
- [UnmanagedCallersOnly(EntryPoint = "cs_multiply")]
- public static int Multiply(int a, int b) => a * b;
-}