diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2022-04-26 10:10:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-26 10:10:17 -0400 |
| commit | 66ad0072821b58318c6dc5d2d64c966e312951dd (patch) | |
| tree | 1d28f0dcf23ca9ac40f4fdd0b92eb5a55b170df1 /tests/current-bugs | |
| parent | b69b0e43e27ec94c0397774db804b4077b062b21 (diff) | |
Overloaded name lookup fix (#2199)
* #include an absolute path didn't work - because paths were taken to always be relative.
* Fix for overloaded name lookup.
* Small improvements.
Diffstat (limited to 'tests/current-bugs')
| -rw-r--r-- | tests/current-bugs/mul-crash.slang | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/current-bugs/mul-crash.slang b/tests/current-bugs/mul-crash.slang deleted file mode 100644 index a5ee7e62c..000000000 --- a/tests/current-bugs/mul-crash.slang +++ /dev/null @@ -1,27 +0,0 @@ -//DISABLE_TEST:SIMPLE: -target hlsl -entry computeMain -stage compute - -// This test crashes when enabled, with a stack overrun. The crash happens when lowering into IR. -// NOTE! That the code has a bug in that the mul function calls itself - so would exhaust the stack *when run*. -// This exhausts the stack when compiling which shouldn't happen. - -RWStructuredBuffer<float> outputBuffer; - -struct SomeType -{ - float2x2 v; -}; - -float mul(SomeType a, float2 v) { return mul(a, v).x; } - -[numthreads(4, 1, 1)] -void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) -{ - uint tid = dispatchThreadID.x; - - float inVal = float(tid); - - float2 v = float2(inVal, inVal + 2); - SomeType t = { inVal + 1, 0, 1, 0 }; - - outputBuffer[tid] = mul(t, v).x; -}
\ No newline at end of file |
