pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:13940:
{ return Tools.Testsuite.run_script ("]]SRCDIR[[/test_resolve.pike"); } ]]) // enum and typedef test_compile_error_any([[enum X {A, B}; enum(X) x;]]) test_compile_error_any([[enum {intern : extern};]])
+
test_compile_any([[
+
// GitHub pikelang/Pike #25.
+
typedef typeof(Val.true)|typeof(Val.false) bool;
+
+
int main (int argc, array(string) argv) {
+
bool a = Val.true;
+
return 0;
+
}
+
]])
+
// - modifiers, compile time type checks test_compile_any(class A {int v;} class B {inherit A; int v;}) test_compile_error_any(class A {int v;} class B {inherit A; float v;}) dnl test_compile_error_any(class A {int v;} class B {inherit A; mixed v;}) dnl test_compile_error_any(class A {mixed v;} class B {inherit A; int v;}) dnl test_compile_error_any(class A {public int v;} class B {inherit A; mixed v;}) dnl test_compile_error_any(class A { public { int v; } } class B {inherit A; mixed v;}) dnl test_compile_error_any(class A {public mixed v;} class B {inherit A; int v;}) test_compile_error_any(class A {protected int v;} class B {inherit A; float v;})