This program prints |
, but it should print ??!
.
#include <stdio.h>
#define PASTE(X, Y) X ## Y
int main(void) {
printf("%ls\n", PASTE(L, "??\
!"));
}
After pasting the tokens L
and "??!"
, clang incorrectly expands the trigraph inside of the second token.
https://godbolt.org/z/s7esnTdjz