cpplex.c (ON_REST_ARG): Check VAR_ARGS flag of current context, use posn - 1 to index...
authorJakub Jelinek <jakub@redhat.com>
Mon, 4 Sep 2000 07:51:58 +0000 (09:51 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 4 Sep 2000 07:51:58 +0000 (09:51 +0200)
commit29844fa7c724106adef78cb758ae1a57461758ae
treec8f56f6b0d1c0f0dd9bb8b652744f962731af294
parente4e37381cab92b10ae601218bf461b2c904b4d6d
cpplex.c (ON_REST_ARG): Check VAR_ARGS flag of current context, use posn - 1 to index into tokens array.

* cpplex.c (ON_REST_ARG): Check VAR_ARGS flag of current context,
use posn - 1 to index into tokens array.
(maybe_paste_with_next): Adjust caller.

* gcc.dg/cpp/paste8.c: New test.

From-SVN: r36128
gcc/ChangeLog
gcc/cpplex.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/paste8.c [new file with mode: 0644]