[CN-test-gen] Crash when using accesses
and --with-static-hack
on a static global array
#831
Labels
accesses
and --with-static-hack
on a static global array
#831
Summary
cn test --with-static-hack
crashes when applyingaccesses
to a static global array.Replication
Test file,
accesses_test.c
:Resulting crash:
For comparison, this example verifies as it should:
CN version:
git-3567800c4 [2025-01-14 14:26:12 +0000]
Analysis
policy_add()
which accesses thepolicy_table
array (see here).cn test
uses the--with-static-hack
flag. This is a workaround for various issues with the C preprocessor (summarized in Preprocessor and executable specifications #823). Without--with-static-hack
CN rejects the example.cc: @ZippeyKeys12
The text was updated successfully, but these errors were encountered: