fix Issue 24200 - ImportC: .di file collected macro conflicts with Special Token (#15797)

This commit is contained in:
Walter Bright 2023-11-22 01:41:55 -08:00 committed by GitHub
parent ed22f5c28f
commit 8547e96ee1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 0 deletions

View file

@ -22,6 +22,11 @@ extern (C)
int x = void;
}
Foo abc();
/+enum int __DATE__ = 1+/;
/+enum int __TIME__ = 1+/;
/+enum int __TIMESTAMP__ = 1+/;
/+enum int __EOF__ = 1+/;
/+enum int __VENDOR__ = 1+/;
}
---
*/
@ -43,3 +48,11 @@ struct Foo {
};
struct Foo abc(void);
// https://issues.dlang.org/show_bug.cgi?id=24200
#define __DATE__ 1
#define __TIME__ 1
#define __TIMESTAMP__ 1
#define __EOF__ 1
#define __VENDOR__ 1