History log of /src/tests/usr.bin/xlint/lint1/d_c99_compound_literal_comma.c |
Revision | | Date | Author | Comments |
1.4 |
| 07-Jul-2023 |
rillig | lint: warn about function definitions without header declaration
The existing warning was only issued for function declarations, not for function definitions.
The interesting change in the tests is in msg_351.c. Many other tests use non-static functions due to their syntactic brevity. In these tests, the warning is disabled individually, to allow new functions to be added without generating warning 351.
|
1.3 |
| 20-Mar-2021 |
rillig | lint: join grammar rules for initialization
The '%prec T_COMMA' is necessary to avoid lots of parse errors in the lint1 unit tests. Curiously, further down in the grammar, for compound literals, the '%prec T_COMMA' is not necessary, even though the context looks very similar.
No functional change.
|
1.2 |
| 31-Jan-2021 |
rillig | lint: add common header for all tests
For those tests that didn't use GCC-style line markers such as "# 2", the line numbers of the diagnostics stay the same. This is purely conincidental. Before, the 3 lines came from lint's built-in definitions (see 'builtins' in main1.c), and line number counting continued as if nothing had happened, making the first line of the actual file line 4. These 3 built-in lines are now replaced with 3 lines of file header.
|
1.1 |
| 11-May-2015 |
christos | one t in literal.
|