Merge pull request #2761 from kugelfuhr/kugelfuhr/fix-2231

Allow comments within _Pragma()
This commit is contained in:
Bob Andrews
2025-07-03 18:36:43 +02:00
committed by GitHub
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;
}