Separated C preprocessor errors from other errors.

This commit is contained in:
acqn
2023-12-18 15:30:53 +08:00
parent 05aae60816
commit cd7c688dff
7 changed files with 91 additions and 30 deletions

View File

@@ -13,7 +13,10 @@
and then "make" again to confirm
*/
short main(int argc, char* argv[])
typedef short return_t;
#error /* produce an error */
return_t main(int argc, char* argv[])
{
printf("%02x", 0x42); /* produce an error */
n = 0; /* produce an error */