1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-04 23:33:05 +00:00
cc65/test/val/bug2458.c
Kugel Fuhr b4aef6eac4 Fix macro preprocessing for #include. Arguments enclosed in "" or <> must not
be preprocessed. See ISO/IEC 9899 1990 (E) section 6.8.2.
2024-09-01 13:16:35 +02:00

11 lines
195 B
C

#define str(arg) #arg
#include str(bug2458.h) /* Ok, macro replacement */
#define string foo
#include <string.h> /* Ok, no macro replacement */
int main()
{
return 0;
}