pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2001-07-04
2001-07-04 12:08:50 by Henrik Grubbström (Grubba) <grubba@grubba.org>
0d6adc2652611878f22fc3bc0bac888f2b79e436 (
24
lines) (+
23
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added tests to check that prototypes evaluate to false.
Rev: src/testsuite.in:1.436
1:
-
test_true([["$Id: testsuite.in,v 1.
435
2001/07/
03
17
:
31
:
33
grubba Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
436
2001/07/
04
12
:
08
:
50
grubba Exp $"]]);
cond([[all_constants()->_verify_internals]], [[
332:
} ]])
+
// Test that prototypes evaluate to false.
+
test_any([[
+
class Foo
+
{
+
int foo();
+
function f()
+
{
+
return !foo;
+
}
+
}
+
return Foo()->f();
+
]], 1)
+
+
test_any([[
+
class Foo
+
{
+
int foo();
+
}
+
return !Foo()->foo;
+
]], 1)
+
test_do([[ class Foo {