Patrick Beard | b2f6820 | 2012-04-06 18:12:22 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s |
Douglas Gregor | c9977d0 | 2011-03-16 17:05:57 +0000 | [diff] [blame] | 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 |