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