pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2019-03-28
2019-03-28 10:53:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>
65e0e161280a723f8f53d36f70256323520cac1e (
10
lines) (+
10
/-
0
)
[
Show
|
Annotate
]
Branch:
master
Compiler: Allow more constant expressions in inherit.
607:
return values(B()); ]], ({ 2 }))
+
test_any_equal([[
+
// Test constant expression in inherit.
+
class A { constant sym = 1; }
+
class B { constant sym = 2; }
+
class C { inherit ([ "A":A, "B":B ])["A"]; }
+
class D { inherit ([ "A":A, "B":B ])["B"]; }
+
return ({ A, B, C, D })->sym;
+
]], ({ 1, 2, 1, 2 }))
+
dnl bug in for loop optimization in combination with += test_any([[