ldmud/test/t-language/tl-cpptrailingifdef.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

11 lines
167 B
C

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