[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Preprocessor directive "pragma"
From: |
grischka |
Subject: |
Re: [Tinycc-devel] Preprocessor directive "pragma" |
Date: |
Fri, 20 Aug 2021 13:51:26 +0200 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
suote127 wrote:
I made a small patch to fix this problem.All tests are passed(with make
test).
That's good, but as you may guess, none of the tests that so far
exist was made specifically to test your new feature. See for
example:
#pragma pack(push+1)
#pragma pack(pop)
#pragma pack(push)
struct foo { char c; int d; };
#pragma pack(pop)
main() { printf("size: %d\n", sizeof (struct foo)); }
should notify the user about the typo, and when you replace
the '+' by a ',' it should print 'size: 8' (not '5').
You can add one or two tests in 60_errors_and_warnings.c,
if you want.
-- grischka
Suote127
------------------------------------------------------------------------
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel