diff options
author | Steve Naroff <snaroff@apple.com> | 2008-04-01 23:04:06 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-04-01 23:04:06 +0000 |
commit | e8043c39176e7f253fbd92982b077eca6bf2fd59 (patch) | |
tree | cbe701153dbc386ac1156afefcf9a1f6ba2c992d /test/Sema | |
parent | a6fb4e07ed2e9145596490240faa1eebff5a53c0 (diff) |
Fairly large "cleaup" related to changing ObjCCompatibleAliasDecl superclass (to inherit from NamedDecl, instead of ScopedDecl).
- Added a DenseMap to associate an IdentifierInfo with the ObjCCompatibleAliasDecl.
- Renamed LookupScopedDecl->LookupDecl and changed it's return type to Decl. Also added lookup for ObjCCompatibleAliasDecl's.
- Removed Sema::LookupInterfaceDecl(). Converted clients to used LookupDecl().
- Some minor indentation changes.
Will deal with ObjCInterfaceDecl and getObjCInterfaceDecl() in a separate commit...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49058 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema')
-rw-r--r-- | test/Sema/alias-test-1.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Sema/alias-test-1.m b/test/Sema/alias-test-1.m index 27ee196798..fdaccf3f8b 100644 --- a/test/Sema/alias-test-1.m +++ b/test/Sema/alias-test-1.m @@ -2,19 +2,19 @@ @compatibility_alias alias4 foo; // expected-warning {{cannot find interface declaration for 'foo'}} -@class class2; +@class class2; // expected-error {{previous declaration is here}} @class class3; typedef int I; // expected-warning {{previous declaration is here}} @compatibility_alias alias1 I; // expected-warning {{cannot find interface declaration for 'I'}} -@compatibility_alias alias class2; // expected-warning {{previous declaration is here}} -@compatibility_alias alias class3; // expected-warning {{previously declared alias is ignored}} +@compatibility_alias alias class2; +@compatibility_alias alias class3; // expected-error {{conflicting types for alias 'alias'}} typedef int alias2; // expected-error {{previous declaration is here}} -@compatibility_alias alias2 class3; // expected-error {{conflicting types for alias alias2'}} +@compatibility_alias alias2 class3; // expected-error {{conflicting types for alias 'alias2'}} alias *p; class2 *p2; |