From 0a28b2729deb5b2568f1f4427699724e2bfd3fc7 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 11 Apr 2024 22:34:44 +0800 Subject: add autogen shared module test --- tests/projects/other/autogen_binary_module/src/data.in | 1 + tests/projects/other/autogen_binary_module/src/main.cpp | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 tests/projects/other/autogen_binary_module/src/data.in create mode 100644 tests/projects/other/autogen_binary_module/src/main.cpp (limited to 'tests/projects/other/autogen_binary_module/src') diff --git a/tests/projects/other/autogen_binary_module/src/data.in b/tests/projects/other/autogen_binary_module/src/data.in new file mode 100644 index 000000000..a04238969 --- /dev/null +++ b/tests/projects/other/autogen_binary_module/src/data.in @@ -0,0 +1 @@ +hello world! diff --git a/tests/projects/other/autogen_binary_module/src/main.cpp b/tests/projects/other/autogen_binary_module/src/main.cpp new file mode 100644 index 000000000..3241308f7 --- /dev/null +++ b/tests/projects/other/autogen_binary_module/src/main.cpp @@ -0,0 +1,10 @@ +#include + +using namespace std; + +extern unsigned char g_codegen_data[]; + +int main(int argc, char** argv) { + cout << (const char*)g_codegen_data << endl; + return 0; +} -- cgit v1.3.1