From 88663a6815cb411b0c81e6c28e7f1c7643659c30 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 6 Oct 2022 15:16:45 -0700 Subject: Add syntax for multi-level break. (#2431) * Add syntax for multi-level break. * Fix. * Fix. Co-authored-by: Yong He --- tests/diagnostics/break-outside-loop.slang.expected | 2 +- tests/diagnostics/token-line-continuation.slang.expected | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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\ ^~ } -- cgit v1.2.3