Skip to content

# in macro left in original location #491

@firewave

Description

@firewave

From testsuite/clang-preprocessor-tests/hash_space.c and uncovered by #490.

#define HASH #
HASH define foo bar

gcc -E output:

# 0 "testsuite/clang-preprocessor-tests/hash_space.c"
# 0 "<built-in>"
# 0 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 0 "<command-line>" 2
# 1 "testsuite/clang-preprocessor-tests/hash_space.c"

 # define foo bar

actual:

1: #
2: define foo bar

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions