Skip to content

# in macro left in original location #491

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions