diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2022-04-13 08:20:19 -0400 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2022-04-13 08:21:31 -0400 |
commit | 385e7df33046d7292612ee1e3ac00a59d8bc0441 (patch) | |
tree | 78a4b072a2aa6ba7172aa812294c17228231441f /lldb/packages/Python/lldbsuite/test/dotest.py | |
parent | bf60a5af0a21323f257719a08d57b28a3389b283 (diff) | |
download | llvm-385e7df33046d7292612ee1e3ac00a59d8bc0441.zip llvm-385e7df33046d7292612ee1e3ac00a59d8bc0441.tar.gz llvm-385e7df33046d7292612ee1e3ac00a59d8bc0441.tar.bz2 |
Correctly diagnose prototype redeclaration errors in C
We did not implement C99 6.7.5.3p15 fully in that we missed the rule
for compatible function types where a prior declaration has a prototype
and a subsequent definition (not just declaration) has an empty
identifier list or an identifier list with a mismatch in parameter
arity. This addresses that situation by issuing an error on code like:
void f(int);
void f() {} // type conflicts with previous declaration
(Note: we already diagnose the other type conflict situations
appropriately, this was the only situation we hadn't covered that I
could find.)
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
0 files changed, 0 insertions, 0 deletions