pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:14450:    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(); +  } +  }; + ]])   test_compile_warning(    class A {    __deprecated__ mapping m;    void foo() {    m["foo"] = "bar";    }    };   )      // - modifiers, compile time access properties