summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs/array-size-groupshared.slang12
-rw-r--r--tests/bugs/generic-groupshared.slang11
-rw-r--r--tests/diagnostics/autodiff-custom-diff-inout.slang.expected2
-rw-r--r--tests/spirv/get-vertex-attribute.slang2
4 files changed, 25 insertions, 2 deletions
diff --git a/tests/bugs/array-size-groupshared.slang b/tests/bugs/array-size-groupshared.slang
index 1acda0292..88adda28e 100644
--- a/tests/bugs/array-size-groupshared.slang
+++ b/tests/bugs/array-size-groupshared.slang
@@ -16,6 +16,18 @@ struct GenType<T : __BuiltinIntegerType, A: IA, let N : int, let M : int>
{
static const int HalfN = N > 1? N / A.M : 1;
static const int P = M + N;
+
+ // TODO(tfoley): What this test is testing seems to be outside
+ // the scope of what we ever intend to support in user code.
+ // Returning an `Ref<T>` is supposed to be a core-module-only
+ // thing, and even then is something that we would like to do less
+ // of over time.
+ //
+ // The only purpose of this test *seems* to be ensuring that this
+ // particular function (and the `groupshared` declaration inside
+ // it) "works," but the function itself is not something that we
+ // intend to be supported in Slang.
+ //
[ForceInline]
Ref<uint> weights(int index)
{
diff --git a/tests/bugs/generic-groupshared.slang b/tests/bugs/generic-groupshared.slang
index 9208f795a..c52f9be03 100644
--- a/tests/bugs/generic-groupshared.slang
+++ b/tests/bugs/generic-groupshared.slang
@@ -4,6 +4,17 @@
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer
RWStructuredBuffer<int> outputBuffer;
+// TODO(tfoley): What this test is testing seems to be outside
+// the scope of what we ever intend to support in user code.
+// Returning an `Ref<T>` is supposed to be a core-module-only
+// thing, and even then is something that we would like to do less
+// of over time.
+//
+// The only purpose of this test *seems* to be ensuring that this
+// particular function (and the `groupshared` declaration inside
+// it) "works," but the function itself is not something that we
+// intend to be supported in Slang.
+//
[ForceInline]
Ref<uint> table<let n: int>(int index)
{
diff --git a/tests/diagnostics/autodiff-custom-diff-inout.slang.expected b/tests/diagnostics/autodiff-custom-diff-inout.slang.expected
index 103c94c9e..2469d7257 100644
--- a/tests/diagnostics/autodiff-custom-diff-inout.slang.expected
+++ b/tests/diagnostics/autodiff-custom-diff-inout.slang.expected
@@ -3,7 +3,7 @@ standard error = {
tests/diagnostics/autodiff-custom-diff-inout.slang(3): error 30019: expected an expression of type 'float', got 'DifferentialPair<float>'
[BackwardDerivative(__d_f)]
^~~~~~~~~~~~~~~~~~
-tests/diagnostics/autodiff-custom-diff-inout.slang(3): error 31149: invalid custom derivative. parameter type mismatch at position 0. expected 'InOut<DifferentialPair<float>>', got 'float'
+tests/diagnostics/autodiff-custom-diff-inout.slang(3): error 31149: invalid custom derivative. parameter type mismatch at position 0. expected 'inout DifferentialPair<float>', got 'float'
[BackwardDerivative(__d_f)]
^~~~~~~~~~~~~~~~~~
}
diff --git a/tests/spirv/get-vertex-attribute.slang b/tests/spirv/get-vertex-attribute.slang
index 655b7ad03..84807682a 100644
--- a/tests/spirv/get-vertex-attribute.slang
+++ b/tests/spirv/get-vertex-attribute.slang
@@ -1,5 +1,5 @@
//TEST:SIMPLE(filecheck=CHECK): -target spirv
-//TEST:SIMPLE(filecheck=CHECK): -target spirv -emit-spirv-via-glsl
+//TEST:SIMPLE(filecheck=CHECK): -target spirv -emit-spirv-via-glsl -dump-intermediates
// CHECK: OpDecorate %vout_vertexID{{.*}} PerVertexKHR