diff options
| author | Yong He <yonghe@outlook.com> | 2024-09-05 11:24:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-05 11:24:19 -0700 |
| commit | d655302465457c5d3285ae5339201a0769cc38dc (patch) | |
| tree | 4c0946ba4ea4879831133370d2203f569c135c35 /tests/bugs/eroneous-generic-parse.slang | |
| parent | a88055c6f5190ca62bb4aa853b4f0fa11546278f (diff) | |
Support `where` clause and type equality constraint. (#4986)
* Support `where` clause.
* Fix.
* Fix parser.
* Enhance test to cover traditional __generic syntax.
* Update user-guide.
* Support `where` clause on associatedtype.
* Fix.
* Put in more comments.
Diffstat (limited to 'tests/bugs/eroneous-generic-parse.slang')
| -rw-r--r-- | tests/bugs/eroneous-generic-parse.slang | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/bugs/eroneous-generic-parse.slang b/tests/bugs/eroneous-generic-parse.slang index 80a693456..18bcb3b1e 100644 --- a/tests/bugs/eroneous-generic-parse.slang +++ b/tests/bugs/eroneous-generic-parse.slang @@ -1,8 +1,9 @@ -//DIAGNOSTIC_TEST:SIMPLE: -target hlsl -entry computeMain -stage compute +//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target hlsl -entry computeMain -stage compute //TEST_INPUT:ubuffer(data=[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], stride=16):out RWStructuredBuffer<int> outputBuffer; +// CHECK: error 20001 // Previously this definition would lead to an infinite loop in parsing. int doThing<1>() { return 2; } |
