summaryrefslogtreecommitdiff
path: root/tests/diagnostics
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-10-06 15:16:45 -0700
committerGitHub <noreply@github.com>2022-10-06 15:16:45 -0700
commit88663a6815cb411b0c81e6c28e7f1c7643659c30 (patch)
treec97c284020364215c6a25eb5c05e6ed29a33d245 /tests/diagnostics
parent50a6906f97f1306de46df7e6c34ddd656ff283dd (diff)
Add syntax for multi-level break. (#2431)
* Add syntax for multi-level break. * Fix. * Fix. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/diagnostics')
-rw-r--r--tests/diagnostics/break-outside-loop.slang.expected2
-rw-r--r--tests/diagnostics/token-line-continuation.slang.expected2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/diagnostics/break-outside-loop.slang.expected b/tests/diagnostics/break-outside-loop.slang.expected
index 1ed54e981..808aafdb3 100644
--- a/tests/diagnostics/break-outside-loop.slang.expected
+++ b/tests/diagnostics/break-outside-loop.slang.expected
@@ -1,6 +1,6 @@
result code = -1
standard error = {
-tests/diagnostics/break-outside-loop.slang(6): error 30003: 'break' must appear inside loop constructs.
+tests/diagnostics/break-outside-loop.slang(6): error 30003: 'break' must appear inside loop or switch constructs.
void foo() { break; }
^~~~~
}
diff --git a/tests/diagnostics/token-line-continuation.slang.expected b/tests/diagnostics/token-line-continuation.slang.expected
index 754d6b7fc..027f2ba2e 100644
--- a/tests/diagnostics/token-line-continuation.slang.expected
+++ b/tests/diagnostics/token-line-continuation.slang.expected
@@ -1,6 +1,6 @@
result code = -1
standard error = {
-tests/diagnostics/token-line-continuation.slang(5): error 30003: 'break' must appear inside loop constructs.
+tests/diagnostics/token-line-continuation.slang(5): error 30003: 'break' must appear inside loop or switch constructs.
void foo() { br\
^~
}