summaryrefslogtreecommitdiffstats
path: root/tests/language-feature/modules/module-name-underscore/underscore.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/language-feature/modules/module-name-underscore/underscore.slang')
-rw-r--r--tests/language-feature/modules/module-name-underscore/underscore.slang13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/language-feature/modules/module-name-underscore/underscore.slang b/tests/language-feature/modules/module-name-underscore/underscore.slang
new file mode 100644
index 000000000..529611676
--- /dev/null
+++ b/tests/language-feature/modules/module-name-underscore/underscore.slang
@@ -0,0 +1,13 @@
+//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -shaderobj -output-using-type
+//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -vk -shaderobj -output-using-type
+
+import my_module;
+
+//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=output
+RWStructuredBuffer<int> output;
+
+void computeMain()
+{
+ output[0] = f();
+ // CHECK: 1
+}