summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/namespace2/src/main.cpp
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2025-05-13 20:22:03 +0200
committerArthur LAURENT <[email protected]>2025-05-13 20:22:03 +0200
commitd1fd8beee890a1beb4ef63ad9b9cd476b2e8bc5b (patch)
tree092f4c94273e2e479ca537474d196b8164d33809 /tests/projects/c++/modules/namespace2/src/main.cpp
parent1dcfa0d95ee2cbe521b707cec7e142d8706570ff (diff)
(C++ modules support) add tests
Diffstat (limited to 'tests/projects/c++/modules/namespace2/src/main.cpp')
-rw-r--r--tests/projects/c++/modules/namespace2/src/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/projects/c++/modules/namespace2/src/main.cpp b/tests/projects/c++/modules/namespace2/src/main.cpp
new file mode 100644
index 000000000..93cc427a4
--- /dev/null
+++ b/tests/projects/c++/modules/namespace2/src/main.cpp
@@ -0,0 +1,9 @@
+import hello;
+
+int main() {
+ hello::data__ = 123;
+ hello::say_hello();
+ hello::say(sizeof(hello::say)).hello();
+ return 0;
+}
+