summaryrefslogtreecommitdiff
path: root/tests/language-feature/modules/include/c.slang
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-12-05 10:06:19 -0800
committerGitHub <noreply@github.com>2023-12-05 10:06:19 -0800
commit1050e0eb96d6c8e7a6cfb253458155e1014625c3 (patch)
treece6c3cbde591759fa2fe2aeb05cb132e50a9a419 /tests/language-feature/modules/include/c.slang
parent4fb3b10b81cf8c976ebd1ebb7fcde7708f022957 (diff)
Support `include` for pulling file into the current module. (#3377)
* Support `include` for pulling file into the current module. * Add auto-completion, hover info and goto-def support. * Disable warning for missing `module` declaration for now. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/language-feature/modules/include/c.slang')
-rw-r--r--tests/language-feature/modules/include/c.slang4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/language-feature/modules/include/c.slang b/tests/language-feature/modules/include/c.slang
new file mode 100644
index 000000000..9588b37be
--- /dev/null
+++ b/tests/language-feature/modules/include/c.slang
@@ -0,0 +1,4 @@
+// TEST_IGNORE_FILE:
+implementing main;
+
+int f_c() { return f_a() + f_b(); }