aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-04-09 21:30:38 +0000
committerDouglas Gregor <dgregor@apple.com>2010-04-09 21:30:38 +0000
commit78713d86faeaaabb8aeb1683353e791defd3a3bf (patch)
treed9445273a72b6db8c77799bf6795e3abbce9c03c /test
parentc42b6520b607cda57e850a60143e9f98bf421dbb (diff)
When upgrading an Objective-C class from a forward declaration to a
full-fledged @interface, be sure that the declaration has the right lexical context. <rdar://problem/7827709> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100903 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/SemaObjCXX/linkage-spec.mm8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/SemaObjCXX/linkage-spec.mm b/test/SemaObjCXX/linkage-spec.mm
index b4e809eee1..1454e6a678 100644
--- a/test/SemaObjCXX/linkage-spec.mm
+++ b/test/SemaObjCXX/linkage-spec.mm
@@ -2,3 +2,11 @@
extern "C" {
@class Protocol;
}
+
+// <rdar://problem/7827709>
+extern "C" {
+@class I;
+}
+
+@interface I
+@end