pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:3240:    }   ]])      test_do([[    class {    void a() { }    void b() { return a(); }    }   ]])    + test_any([[ +  class X { +  int add(int a, int b) = a + b; +  string `id() = "foo"; +  void print(string s) = (void)write(s); +  }; +  X x = X(); +  return x->add(3,4)==7 && x->id == "foo"; + ]], 1) +    test_any([[string gurk="bozo"; string b(int x) { return (x?b(x-1)+gurk:""); }; return b(5)]],[["bozo"*5]])      dnl this should really work...   dnl test_compile_any([[void foo(int,string,...);]])      dnl This test doesn't run out of stack anymore, freaky   dnl test_eval_error([[class X { int create() { create(); } }();]])   test_compile_error([[ int float; ]])   test_compile_error([[ int array; ]])   test_compile_error([[ int function; ]])