Mercurial > hg > CbC > CbC_llvm
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 |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s |
2 | |
3 // PR9495 | |
4 struct NonPOD { NonPOD(); ~NonPOD(); }; | |
5 | |
6 @interface A | |
7 @end | |
8 | |
9 @implementation A | |
10 - (void)method:(bool)b { | |
11 NonPOD np; | |
12 if (b) { | |
13 goto undeclared; // expected-error{{use of undeclared label 'undeclared'}} | |
14 } | |
15 } | |
16 @end |