diff options
| author | Yong He <yonghe@outlook.com> | 2025-05-15 12:51:29 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-15 12:51:29 -0700 |
| commit | 0d6312f3be66f4bff9eec9606228db3edc309e2c (patch) | |
| tree | a868e452e2d25a88f8a6cdee109a280edd11c0fb /tests/diagnostics/invalid-buffer.slang | |
| parent | d961f4438ef865028d289148d22e0fb5c0d8319a (diff) | |
Add checking for hlsl register semantic. (#7118)
* Add checking for hlsl register semantic.
* Fix.
* Fix test.
* Fix switch error.
* Fix tests.
Diffstat (limited to 'tests/diagnostics/invalid-buffer.slang')
| -rw-r--r-- | tests/diagnostics/invalid-buffer.slang | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/diagnostics/invalid-buffer.slang b/tests/diagnostics/invalid-buffer.slang new file mode 100644 index 000000000..53f4c5ff6 --- /dev/null +++ b/tests/diagnostics/invalid-buffer.slang @@ -0,0 +1,9 @@ +//TEST:SIMPLE(filecheck=CHECK): -target spirv + +// CHECK: ([[# @LINE+1]]): error 30400: generic type 'Buffer' used without argument +Buffer b; + +[numthreads(1,1,1)] +void computeMain() +{ +}
\ No newline at end of file |
