Blame cpp-test/test-t/e_27_7.c

Packit Service 8bf002
/* e_27_7.c:    Error of rescanning.    */
Packit Service 8bf002
Packit Service 8bf002
/* { dg-do preprocess } */
Packit Service 8bf002
Packit Service 8bf002
#define sub( x, y)      (x - y)
Packit Service 8bf002
Packit Service 8bf002
/* 27.7:    */
Packit Service 8bf002
#define TWO_TOKENS      a,b
Packit Service 8bf002
#define SUB( x, y)      sub( x, y)
Packit Service 8bf002
/* Too many arguments error while rescanning after once replaced to:
Packit Service 8bf002
    sub( a,b, 1);   */
Packit Service 8bf002
    SUB( TWO_TOKENS, 1);
Packit Service 8bf002
/* { dg-error "passed 3 arguments, but takes just 2| used with too many \\(3\\) args| More than necessary 2 argument\\(s\\) in macro call" "too many arguments in rescanning" { target *-*-* } 12 } */
Packit Service 8bf002