From ad9fbdef6f2e738ab3586dc286463aa94cb01dc4 Mon Sep 17 00:00:00 2001 From: krangelov Date: Fri, 24 Sep 2021 15:55:59 +0200 Subject: [PATCH] added test case for parameters --- testsuite/compiler/compute/param_table.gf | 6 ++++++ testsuite/compiler/compute/param_table.gfs | 2 ++ testsuite/compiler/compute/param_table.gfs.gold | 1 + 3 files changed, 9 insertions(+) create mode 100644 testsuite/compiler/compute/param_table.gf create mode 100644 testsuite/compiler/compute/param_table.gfs create mode 100644 testsuite/compiler/compute/param_table.gfs.gold diff --git a/testsuite/compiler/compute/param_table.gf b/testsuite/compiler/compute/param_table.gf new file mode 100644 index 000000000..a6a56ba33 --- /dev/null +++ b/testsuite/compiler/compute/param_table.gf @@ -0,0 +1,6 @@ +resource param_table = { + +param Q = Q1 | Q2 ; +param P = P1 | P2 Q ; + +} diff --git a/testsuite/compiler/compute/param_table.gfs b/testsuite/compiler/compute/param_table.gfs new file mode 100644 index 000000000..7b2f1d3eb --- /dev/null +++ b/testsuite/compiler/compute/param_table.gfs @@ -0,0 +1,2 @@ +i -retain testsuite/compiler/compute/param_table.gf +cc P2 Q1 diff --git a/testsuite/compiler/compute/param_table.gfs.gold b/testsuite/compiler/compute/param_table.gfs.gold new file mode 100644 index 000000000..5e039c666 --- /dev/null +++ b/testsuite/compiler/compute/param_table.gfs.gold @@ -0,0 +1 @@ +param_table.P2 param_table.Q1