commit | d376f08d784fc94d188e510964e448008d7e834e | [log] [tgz] |
---|---|---|
author | Fariborz Jahanian <fjahanian@apple.com> | Fri Oct 12 23:43:31 2007 +0000 |
committer | Fariborz Jahanian <fjahanian@apple.com> | Fri Oct 12 23:43:31 2007 +0000 |
tree | 7ef9247819572fb3a37e9b68572ce2fd218e1cfc | |
parent | 1003f49442e4f7ff2aba44c5732234a9e4238000 [diff] [blame] |
Patch to check for duplicate method decls in protocols. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42938 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/check-dup-decl-methods-1.m b/test/Sema/check-dup-decl-methods-1.m index d69c4a7..36a98a2 100644 --- a/test/Sema/check-dup-decl-methods-1.m +++ b/test/Sema/check-dup-decl-methods-1.m
@@ -32,7 +32,7 @@ @end @protocol P -- (int) meth; -- (int*) meth; +- (int) meth; // expected-error {{previous declaration is here}} +- (int*) meth; // expected-error {{duplicate declaration of method 'meth'}} @end