diff options
| author | Douglas Gregor <dgregor@apple.com> | 2011-12-15 20:29:51 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2011-12-15 20:29:51 +0000 |
| commit | dc9166c8e1120dc0df1859ba6e3d457a458fd20f (patch) | |
| tree | eb14bbba9db83cabdb68f9855daa4109c4c1940a /clang/test/SemaObjC/forward-class-1.m | |
| parent | 918f976e66e8311ab1053b83521511ddee039783 (diff) | |
| download | bcm5719-llvm-dc9166c8e1120dc0df1859ba6e3d457a458fd20f.tar.gz bcm5719-llvm-dc9166c8e1120dc0df1859ba6e3d457a458fd20f.zip | |
Keep track of all declarations of an Objective-C class (both forward
declarations and definitions) as ObjCInterfaceDecls within the same
redeclaration chain. This new representation matches what we do for
C/C++ variables/functions/classes/templates/etc., and makes it
possible to answer the query "where are all of the declarations of
this class?"
llvm-svn: 146679
Diffstat (limited to 'clang/test/SemaObjC/forward-class-1.m')
| -rw-r--r-- | clang/test/SemaObjC/forward-class-1.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaObjC/forward-class-1.m b/clang/test/SemaObjC/forward-class-1.m index 3a9a8ac82d9..f5ce8892d3a 100644 --- a/clang/test/SemaObjC/forward-class-1.m +++ b/clang/test/SemaObjC/forward-class-1.m @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +@class FOO, BAR; @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'}} @end |

