summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/forward-class-1.m
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-11-14 22:10:01 +0000
committerDouglas Gregor <dgregor@apple.com>2011-11-14 22:10:01 +0000
commit4123a86faebbd8b9d0d635962da824c6c13eb00e (patch)
tree02c1e226f5def7c2115c651652cc93357cac8094 /clang/test/SemaObjC/forward-class-1.m
parent1fcdaa9c058e65ca4251a3a752e42b5cbd1db736 (diff)
downloadbcm5719-llvm-4123a86faebbd8b9d0d635962da824c6c13eb00e.tar.gz
bcm5719-llvm-4123a86faebbd8b9d0d635962da824c6c13eb00e.zip
Use Sema::RequireCompleteType to check for the completeness of
Objective-C classes. This has two purposes: to consistently provide "forward declaration here" notes when we hit an incomplete type, and to give LLDB a chance to complete the type. RequireCompleteType bits from Sean Callanan! llvm-svn: 144573
Diffstat (limited to 'clang/test/SemaObjC/forward-class-1.m')
-rw-r--r--clang/test/SemaObjC/forward-class-1.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaObjC/forward-class-1.m b/clang/test/SemaObjC/forward-class-1.m
index de94e884aee..3a9a8ac82d9 100644
--- a/clang/test/SemaObjC/forward-class-1.m
+++ b/clang/test/SemaObjC/forward-class-1.m
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
-@class FOO, BAR; // expected-note {{forward class is declared here}}
+@class FOO, BAR; // expected-note {{forward declaration of class here}}
@class FOO, BAR;
@interface INTF : FOO // expected-error {{attempting to use the forward class 'FOO' as superclass of 'INTF'}}
@@ -46,7 +46,7 @@ typedef NSObject <XCElementP> XCElement;
// rdar://9653341
-@class B; // expected-note {{forward class is declared here}}
+@class B; // expected-note {{forward declaration of class here}}
@interface A : B {} // expected-error {{attempting to use the forward class 'B' as superclass of 'A'}}
@end
OpenPOWER on IntegriCloud