ldmud/test/t-language/tl-cpptrailingendif1.c
Alexander Motzkau 4a138ab90d Warn about trailing characters in all preprocessor statements
Similar to #else and #endif warn about trailing characters
also in #include, #ifdef, #ifndef, #undef and #line statements.
2021-01-25 14:14:36 +01:00

12 lines
163 B
C

// Trailing comments after an #endif should not throw an error.
#pragma pedantic
#if 1
#else
#endif /* this should not fail */
int run_test()
{
return 1;
}