Skip to content
Snippets Groups Projects
Commit ba427403 authored by benjamin.franksen's avatar benjamin.franksen
Browse files

test: added funcdefShadowGlobal.st

This tests that a global SNL variable is (correctly) shadowed by a
function parameter with the same name, even in re-entrant mode.
parent 5e68022f
No related branches found
No related tags found
No related merge requests found
program funcdefShadowGlobalTest
option +r;
int x;
assign x;
void pvSetX(int x)
{
pvPut(x);
}
ss simple {
state simple {
when () {
pvSetX(1.0);
} exit
}
}
......@@ -29,6 +29,7 @@ my $error = {
efGlobal => 3,
efNoInit => 1,
efPointer => 1,
funcdefShadowGlobal => 1,
foreignGlobal => 3,
foreignNoInit => 1,
misplacedExit => 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment