X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=tests%2Fparser%2Fcpp003%2Fprescan.psi;fp=tests%2Fparser%2Fcpp003%2Fprescan.psi;h=e902302f7aa71c172329acfa715f658c34b1b071;hp=0000000000000000000000000000000000000000;hb=a7ac1c0a3c855321f21682c127a4b707de33a303;hpb=35060621f2fd5079502543d17942127c1a602f72 diff --git a/tests/parser/cpp003/prescan.psi b/tests/parser/cpp003/prescan.psi new file mode 100644 index 0000000..e902302 --- /dev/null +++ b/tests/parser/cpp003/prescan.psi @@ -0,0 +1,11 @@ +#define AFTERX(x) X_ ## x +#define XAFTERX(x) AFTERX(x) +#define TABLESIZE 1024 +#define BUFSIZE TABLESIZE + +#define X_BUFSIZE 111110 + 1 +const int \CPP_TEST1 = AFTERX(BUFSIZE); // expands to X_BUFSIZE + +#define X_1024 222221 + 1 +const int \CPP_TEST2 = XAFTERX(BUFSIZE); // expands to X_1024 +