pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2016-11-05
2016-11-05 11:56:06 by Henrik Grubbström (Grubba) <grubba@grubba.org>
4a06ad3a6980fa611c10fc242566d747033a12a3 (
15
lines) (+
15
/-
0
)
[
Show
|
Annotate
]
Branch:
8.1
Testsuite
[Compiler]
: Trivial test of __weak__.
3144:
]]) test_any([[
+
// Test the __weak__ modifier.
+
class A {
+
class Q{};
+
__weak__ Q q_w = Q();
+
__weak__ mixed m_w = Q();
+
Q q = Q();
+
mixed m = Q();
+
};
+
A a = A();
+
gc();
+
return !a->q_w && !a->m_w && a->q && a->m && 1;
+
]], 1)
+
+
test_any([[
// Test symbol lookup for inherit in multi-pass. // LysLysKOM 16472935 // An old pike will attempt to lookup X in the innermost X