Skip to content

Commit 43e7d98

Browse files
committed
Add test coverage from issue
1 parent ab85259 commit 43e7d98

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

clang/test/Preprocessor/stdint.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,6 +1640,14 @@
16401640
// JOIN:INTMAX_C_(0) 0LL
16411641
// JOIN:UINTMAX_C_(0) 0ULL
16421642

1643+
// Demonstrate that you can define the integer literal suffixes as a macro and
1644+
// it will not interfere with the definitions in stdint.h due to invalid tokens
1645+
// formed via token pasting. See GH85995 for details.
1646+
#define L %
1647+
#define UL %
1648+
#define LL %
1649+
#define ULL %
1650+
16431651
#include <stdint.h>
16441652

16451653
INT8_MAX_ INT8_MAX

0 commit comments

Comments
 (0)