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

Packit b40e2e
/* n_23.c:  ## operator in macro definition.    */
Packit b40e2e
Packit b40e2e
#define glue( a, b)     a ## b
Packit b40e2e
#define xglue( a, b)    glue( a, b)
Packit b40e2e
Packit b40e2e
/* 23.1:    */
Packit b40e2e
/*  xy; */
Packit b40e2e
    glue( x, y);
Packit b40e2e
Packit b40e2e
/* 23.2:    Generate a preprocessing number.    */
Packit b40e2e
/*  .12e+2; */
Packit b40e2e
#define EXP     2
Packit b40e2e
    xglue( .12e+, EXP);
Packit b40e2e
Packit b40e2e
/* { dg-do preprocess }
Packit b40e2e
   { dg-final { if ![file exist n_23.i] { return }                      } }
Packit b40e2e
   { dg-final { if \{ [grep n_23.i "xy"] != ""                  \} \{   } }
Packit b40e2e
   { dg-final { if \{ [grep n_23.i "\.12e\\+2"] != ""           \} \{   } }
Packit b40e2e
   { dg-final { return \} \}                                            } }
Packit b40e2e
   { dg-final { fail "n_23.c: ## operator"                              } }
Packit b40e2e
 */
Packit b40e2e