summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/rewriter/gh-160.hlsl13
-rw-r--r--tests/rewriter/gh-160.slang3
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/rewriter/gh-160.hlsl b/tests/rewriter/gh-160.hlsl
new file mode 100644
index 000000000..46ef6a92c
--- /dev/null
+++ b/tests/rewriter/gh-160.hlsl
@@ -0,0 +1,13 @@
+//TEST:COMPARE_HLSL: -no-checking -target dxbc-assembly -profile ps_4_0 -entry main
+
+#ifdef __SLANG__
+__import gh_160;
+#endif
+
+vec4 main(VS_OUT vOut) : SV_TARGET
+{
+ float3 color = float3(1,0,0);
+
+ vec4 finalColor = vec4(color, 1.f);
+ return finalColor;
+} \ No newline at end of file
diff --git a/tests/rewriter/gh-160.slang b/tests/rewriter/gh-160.slang
new file mode 100644
index 000000000..c86f63c19
--- /dev/null
+++ b/tests/rewriter/gh-160.slang
@@ -0,0 +1,3 @@
+//TEST_IGNORE_FILE:
+
+// This file only exists so that `gh-160.hlsl` can import it.