Allow comments within _Pragma(). Fixes #2231.

This commit is contained in:
Kugel Fuhr
2025-07-01 17:24:24 +02:00
parent 8e62d3d440
commit 64d35b6a86
4 changed files with 83 additions and 63 deletions

10
test/val/bug2231.c Normal file
View File

@@ -0,0 +1,10 @@
_Pragma("message/*Comment1*/ ( /*Comment2*/\"test message\" /*Comment3*/)")
/* We have no pragma without parenthesis but if there would be one, the
** following should also work:
*/
/* _Pragma("once// Comment") */
int main(void)
{
return 0;
}