aboutsummaryrefslogtreecommitdiff
path: root/tests/iii/extern-struct-rejected/notes.md
blob: 40e3ab8b0a0b943ca66e9c8f0587977673dd6a31 (plain)
1
2
3
4
5

# extern-struct-rejected

Compiler extension: an EXTERN signature accepts a record, through a pointer type or by value, only as a C struct (every field a C type, a C struct or a pointer type to either). Person has a STRING field, so a pointer to it, Person as a by-value parameter, as a by-value result and as a by-value variadic argument are all rejected and the field is named. A pointer type counts as a C type only when its pointee does, so a pointer to INTEGER is rejected too.

Require exit 1 and each cause on its EXTERN or call line.