diff options
Diffstat (limited to 'tests/bugs')
| -rw-r--r-- | tests/bugs/array-size-groupshared.slang | 12 | ||||
| -rw-r--r-- | tests/bugs/generic-groupshared.slang | 11 |
2 files changed, 23 insertions, 0 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) { |
