From d18c6736394dc5f46aa61c44f150bd71414647bf Mon Sep 17 00:00:00 2001 From: "benjamin.franksen" <benjamin.franksen@helmholtz-berlin.de> Date: Mon, 11 Jun 2012 12:37:31 +0000 Subject: [PATCH] test: added two compiler tests --- test/compiler/efNoInit.st | 11 +++++++++++ test/compiler/foreignNoInit.st | 11 +++++++++++ test/compiler/snc_test.plt | 2 ++ 3 files changed, 24 insertions(+) create mode 100644 test/compiler/efNoInit.st create mode 100644 test/compiler/foreignNoInit.st diff --git a/test/compiler/efNoInit.st b/test/compiler/efNoInit.st new file mode 100644 index 00000000..4ab8451e --- /dev/null +++ b/test/compiler/efNoInit.st @@ -0,0 +1,11 @@ +/*************************************************************************\ +Copyright (c) 2010-2012 Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) +This file is distributed subject to a Software License Agreement found +in the file LICENSE that is included with this distribution. +\*************************************************************************/ +program efNoInitTest + +evflag ef = 1; + +#include "../simple.st" diff --git a/test/compiler/foreignNoInit.st b/test/compiler/foreignNoInit.st new file mode 100644 index 00000000..676a1139 --- /dev/null +++ b/test/compiler/foreignNoInit.st @@ -0,0 +1,11 @@ +/*************************************************************************\ +Copyright (c) 2010-2012 Helmholtz-Zentrum Berlin f. Materialien + und Energie GmbH, Germany (HZB) +This file is distributed subject to a Software License Agreement found +in the file LICENSE that is included with this distribution. +\*************************************************************************/ +program foreignNoInitTest + +foreign bla = 1; + +#include "../simple.st" diff --git a/test/compiler/snc_test.plt b/test/compiler/snc_test.plt index c9b07567..21026c0a 100644 --- a/test/compiler/snc_test.plt +++ b/test/compiler/snc_test.plt @@ -24,8 +24,10 @@ my $warning = { my $error = { efArray => 1, efGlobal => 3, + efNoInit => 1, efPointer => 1, foreignGlobal => 3, + foreignNoInit => 1, misplacedExit => 2, pvNotAssigned => 20, sync_not_assigned => 1, -- GitLab