summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/objc.dg/method-conflict-1.m
Commit message (Collapse)AuthorAgeFilesLines
* In gcc/objc/:nicola2010-12-301-0/+26
2010-12-30 Nicola Pero <nicola.pero@meta-innovation.com> * objc-act.c (objc_add_method): When emitting an error because a method with the same name but conflicting types is found in the same class or category interface, print a note with the location of the original method. Also, improved the error message to clearly state that the conflict is due to conflicting types, and produce it for protocols as well. Emit an error if two identical methods are declared in a protocol, but one is @required and the other one is @optional. When In gcc/testsuite/: 2010-12-30 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/class-extension-3.m: Updated. * objc.dg/method-1.m: Updated. * objc.dg/method-conflict-1.m: New. * objc.dg/method-conflict-2.m: New. * obj-c++.dg/class-extension-3.mm: Updated. * obj-c++.dg/method-8.mm: Updated. * obj-c++.dg/method-conflict-1.mm: New. * obj-c++.dg/method-conflict-2.mm: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168350 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud