diff options
| author | Yong He <yonghe@outlook.com> | 2024-05-15 18:07:36 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-15 18:07:36 -0700 |
| commit | 3b0de8b6ea484091146f61e663c63beeac5b4798 (patch) | |
| tree | 8093bc0af8d0801435c29abf5c5f1fdd3e7cc09a /tests/diagnostics | |
| parent | cc88530a722cc2ce7a09f2a39dadeeb504e2f221 (diff) | |
Add diagnostic to prevent defining unsized variables. (#4168)
* Add diagnostic to prevent defining unsized static variables.
* Fix tests.
* Add more tests.
* Fix to allow defining variables of link-time size.
* update diagnostic message.
* Fix tests.
* Simplify code.
Diffstat (limited to 'tests/diagnostics')
| -rw-r--r-- | tests/diagnostics/unsized.slang | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/diagnostics/unsized.slang b/tests/diagnostics/unsized.slang index 6bcad95a9..6b14353b5 100644 --- a/tests/diagnostics/unsized.slang +++ b/tests/diagnostics/unsized.slang @@ -5,6 +5,7 @@ extern static const int size = 1; struct V { // CHECK-DAG: ([[# @LINE+1]]): error 30070 + int c[]; int b[size]; int a[]; } |
