diff --git a/test/compiler/funcdefShadowGlobal.st b/test/compiler/funcdefShadowGlobal.st new file mode 100644 index 0000000000000000000000000000000000000000..cde22018341d013878f703738dcb9cac294c37ed --- /dev/null +++ b/test/compiler/funcdefShadowGlobal.st @@ -0,0 +1,19 @@ +program funcdefShadowGlobalTest + +option +r; + +int x; +assign x; + +void pvSetX(int x) +{ + pvPut(x); +} + +ss simple { + state simple { + when () { + pvSetX(1.0); + } exit + } +} diff --git a/test/compiler/snc_test.plt b/test/compiler/snc_test.plt index 7335cc016bcfa0517fddddee10776a250aed19ba..e06f7dd34033dc4075c5516e3808483a89194e25 100644 --- a/test/compiler/snc_test.plt +++ b/test/compiler/snc_test.plt @@ -29,6 +29,7 @@ my $error = { efGlobal => 3, efNoInit => 1, efPointer => 1, + funcdefShadowGlobal => 1, foreignGlobal => 3, foreignNoInit => 1, misplacedExit => 1,