pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:13017:    class A { int foo(__deprecated__(int)|void x) { return (int)x; } };   )   test_compile_warning(    class A { int foo(__deprecated__(int)|void x) { return (int)x; } };    A()->foo(1);   )   test_compile_any(    class A { int foo(__deprecated__(int)|void x) { return (int)x; } };    mixed bar = A()->foo();   ) + test_compile_any([[ +  class A { +  inherit Stdio.File;    -  +  // NB: Stdio.File()->seek() has a deprecated variant, which this +  // should NOT match. +  int seek(int pos) {} +  +  int close() +  { +  // In the broken case this complains: +  // Warning: Using deprecated function(int, int, void | int : int) value. +  object(this_program) f = Stdio.File(); +  } +  }; + ]]) +    // - modifiers, compile time access properties      test_compile_error_any(class A {} class B {inherit A; int q; void g(){q=v;}})   test_compile_any(class A {int v;} class B {inherit A; int q; void g(){q=v;}})   test_compile_any(class A {public int v;} class B {inherit A; int q; void g(){q=v;}})   test_compile_any(class A {protected int v;} class B {inherit A; int q; void g(){q=v;}})   test_compile_error_any(class A {private int v; int q=v;} class B {inherit A; int q; void g(){q=v;}})   test_compile_any(class A {final int v;} class B {inherit A; int q; void g(){q=v;}})   test_compile_any(   #pragma no_deprecation_warnings