diff options
| author | Yong He <yonghe@outlook.com> | 2023-12-12 14:07:35 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-12 14:07:35 -0800 |
| commit | 92f21de580e16a37600f082c0968913111f5ef91 (patch) | |
| tree | 3bc7cd132d9d667a4971dff080503648f358e6b3 /tests/diagnostics | |
| parent | ec0224edc3a867bbf059e790ad7b2a1a881a0705 (diff) | |
Add check for invalid use of modifiers. (#3402)
* Add check for invalid use of modifiers.
* Fixes.
* Add test.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/diagnostics')
| -rw-r--r-- | tests/diagnostics/modifier-check.slang | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/diagnostics/modifier-check.slang b/tests/diagnostics/modifier-check.slang new file mode 100644 index 000000000..e42b2ae0e --- /dev/null +++ b/tests/diagnostics/modifier-check.slang @@ -0,0 +1,9 @@ +//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): + +// CHECK: ([[# @LINE+1]]): error 31201 +layout(rgba8); +Texture2D<float4> tex; + +// CHECK: ([[# @LINE+1]]): error 31202 +public internal int v() +{} |
