fix cut & paste error in cp/parser and add testscases in case of fture error.
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Oct 2010 13:51:38 +0000 (13:51 +0000)
committeriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Oct 2010 13:51:38 +0000 (13:51 +0000)
commitcabf6150800634d6edcb16a7a20925ec082ccf1f
tree856574fa60c14d66ccaff8e8035e604b9c45b683
parent28e9312590241085c4c9c616e2d59d118a216cd1
fix cut & paste error in cp/parser and add testscases in case of fture error.

gcc/cp:

parser.c (cp_parser_objc_method_tail_params_opt): Peek new token after
finding ellipsis, before checking for attributes.

testsuite:

* objc.dg/attributes/method-attribute-3.m: New.
* obj-c++.dg/attributes/method-attribute-3.mm: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165109 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/obj-c++.dg/attributes/method-attribute-3.mm [new file with mode: 0644]
gcc/testsuite/objc.dg/attributes/method-attribute-3.m [new file with mode: 0644]