Skip to content

Commit b27fe91

Browse files
committed
added test
1 parent 0d114d0 commit b27fe91

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module lang::rascal::tests::basic::FunctionCachesAndGlobals
2+
3+
default int f(int _) = 42;
4+
int x = f(0);
5+
int f(0) = 0;
6+
7+
test bool globalInitLast() = x == 0;
8+
9+
// test bool noCacheDuringInit() = f(0) == 0;

0 commit comments

Comments
 (0)