From 0fb91bbb2f84d586d3e418cb93c0a9258923d28e Mon Sep 17 00:00:00 2001 From: krasimir Date: Wed, 28 Oct 2009 17:59:18 +0000 Subject: added test cases for cyrcular definitions --- testsuite/compiler/check/cyclic/opers/TestOpers.gf | 10 ++++++++++ testsuite/compiler/check/cyclic/opers/test.gfs | 1 + testsuite/compiler/check/cyclic/opers/test.gfs.gold | 4 ++++ 3 files changed, 15 insertions(+) create mode 100644 testsuite/compiler/check/cyclic/opers/TestOpers.gf create mode 100644 testsuite/compiler/check/cyclic/opers/test.gfs create mode 100644 testsuite/compiler/check/cyclic/opers/test.gfs.gold (limited to 'testsuite/compiler/check/cyclic/opers') diff --git a/testsuite/compiler/check/cyclic/opers/TestOpers.gf b/testsuite/compiler/check/cyclic/opers/TestOpers.gf new file mode 100644 index 000000000..886458b3f --- /dev/null +++ b/testsuite/compiler/check/cyclic/opers/TestOpers.gf @@ -0,0 +1,10 @@ +resource TestOpers = { + +flags + optimize=noexpand; + +oper + A : Str = B ; + B : Str = A ; + +} \ No newline at end of file diff --git a/testsuite/compiler/check/cyclic/opers/test.gfs b/testsuite/compiler/check/cyclic/opers/test.gfs new file mode 100644 index 000000000..5c469f036 --- /dev/null +++ b/testsuite/compiler/check/cyclic/opers/test.gfs @@ -0,0 +1 @@ +i testsuite/compiler/check/cyclic/opers/TestOpers.gf \ No newline at end of file diff --git a/testsuite/compiler/check/cyclic/opers/test.gfs.gold b/testsuite/compiler/check/cyclic/opers/test.gfs.gold new file mode 100644 index 000000000..d09ec7edd --- /dev/null +++ b/testsuite/compiler/check/cyclic/opers/test.gfs.gold @@ -0,0 +1,4 @@ + + +checking module TestOpers + circular definitions: A B -- cgit v1.2.3