summaryrefslogtreecommitdiffstats
path: root/tests/modules/implementing-with-ext.slang
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2025-04-08 19:30:38 +0800
committerGitHub <noreply@github.com>2025-04-08 19:30:38 +0800
commit87c96bcfa89905d237dc0452f255ebf61307c441 (patch)
tree7a981f99059fab03ba59dd60222ea077f1851445 /tests/modules/implementing-with-ext.slang
parent9972a5269f87618e237cd927b859636322596a76 (diff)
warn when the user puts a file extension in an implementing directive (#6757)
Closes https://github.com/shader-slang/slang/issues/5995
Diffstat (limited to 'tests/modules/implementing-with-ext.slang')
-rw-r--r--tests/modules/implementing-with-ext.slang9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/modules/implementing-with-ext.slang b/tests/modules/implementing-with-ext.slang
new file mode 100644
index 000000000..4e399df7d
--- /dev/null
+++ b/tests/modules/implementing-with-ext.slang
@@ -0,0 +1,9 @@
+implementing "mymodule.slang";
+
+int helperFunction() { return 0; }
+
+void main()
+{
+ int x = moduleFunction();
+ int y = helperFunction();
+}