Files
c3c/test/test_suite/comments/complex_nesting.c3
mmoustafa8108 5055e86518 test: added comprehensive tests for in-string & complex nested comments (#2956)
* test: added comprehensive tests for in-string & complex nested comments

* Properly handle error

---------

Co-authored-by: Christoffer Lerno <christoffer.lerno@gmail.com>
2026-02-20 13:24:08 +01:00

12 lines
736 B
Plaintext

// this test stress-tests the compiler ability to handle complex comments
/* first of all, I wanna say that <* linux *> is the best OS ever!
secondly, #!pizza, it's a masterpiece... nothing is better than pizza, // thanks to who cooked it for the first time..
I want to rant windows but I'm afraid of it getting mad and not supporting C3.. /* I'll not cause problems, just for this time */
I'm forced to use windows for ~4 more months just for my school.. /* this is TERRIBLE guys */
#! this line would fail because it's "#!" isn't in the right place (the first two characters of a file).. but since we're already in a comment, it' fine!
*/
#! this line should raise an error! // #error: a global
// while this shouldn't!