Closed Baltoli closed 7 years ago
The problem here is that even when a field of a struct is being passed to a function, Clang will optimise (?) by just passing the whole struct by value. This means that we enter the branch of ParseArg
where we look at passing structs by value, rather than skipping it because we have a single param.
Fixed in cadets/tesla-static-analysis#4
The parser appears to have a regression where the name of a field is specified incorrectly.
Failing test is:
tesla/test/Parsing/field-argument.c