annotate clang/test/SemaObjCXX/goto.mm @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 // PR9495
anatofuz
parents:
diff changeset
4 struct NonPOD { NonPOD(); ~NonPOD(); };
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 @interface A
anatofuz
parents:
diff changeset
7 @end
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 @implementation A
anatofuz
parents:
diff changeset
10 - (void)method:(bool)b {
anatofuz
parents:
diff changeset
11 NonPOD np;
anatofuz
parents:
diff changeset
12 if (b) {
anatofuz
parents:
diff changeset
13 goto undeclared; // expected-error{{use of undeclared label 'undeclared'}}
anatofuz
parents:
diff changeset
14 }
anatofuz
parents:
diff changeset
15 }
anatofuz
parents:
diff changeset
16 @end