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

Packit b40e2e
/* u_1_28.c:    Macro expanding to name identical to directive. */
Packit b40e2e
Packit b40e2e
/* { dg-do preprocess } */
Packit b40e2e
Packit b40e2e
#define D   define
Packit b40e2e
/* u.1.28:  There are following two ways of preprocessing.
Packit b40e2e
    1:  "D" isn't expanded, because # is the first token of the line.
Packit b40e2e
        Preprocessor reports that "D" is an unknown directive.
Packit b40e2e
    2:  "D" is expanded, because that is not a directive.
Packit b40e2e
        Compiler-phase will diagnose the output of preprocess.
Packit b40e2e
    Anyway, preprocessor should not interprete this line as a preprocessing
Packit b40e2e
    directive.
Packit b40e2e
 */
Packit b40e2e
#D  A   B   /* { dg-error "invalid preprocessing directive| Unknown #directive" } */
Packit b40e2e