summaryrefslogtreecommitdiff
path: root/test/ARCMT
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-09-06 00:24:58 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-09-06 00:24:58 +0000
commit06260b83cc831ef35ec0f2860c7cf19449e5d564 (patch)
treef621b502275fd383d1d649ea12556c06cc6964eb /test/ARCMT
parent1e2542d3585a7f51c3fb88269192bbc26572cfd7 (diff)
Reword switch/goto diagnostics "protected scope" diagnostics. Making up a term
"protected scope" is very unhelpful here and actively confuses users. Instead, simply state the nature of the problem in the diagnostic: we cannot jump from here to there. The notes explain nicely why not. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@217293 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ARCMT')
-rw-r--r--test/ARCMT/checking.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ARCMT/checking.m b/test/ARCMT/checking.m
index 7815103822..d8ccf16752 100644
--- a/test/ARCMT/checking.m
+++ b/test/ARCMT/checking.m
@@ -182,7 +182,7 @@ void test6(unsigned cond) {
;
id x; // expected-note {{jump bypasses initialization of retaining variable}}
- case 1: // expected-error {{switch case is in protected scope}}
+ case 1: // expected-error {{cannot jump}}
x = 0;
break;
}