wrong_script_segf.sql 320 B

1234567891011121314151617
  1. /* custom error:PrintBacktraceToStderr*/
  2. /* dqfile can not */
  3. USE plato;
  4. $f=Python3::f(@@
  5. def f(x):
  6. """
  7. Callable<(Int32)->Int32>
  8. """
  9. import ctypes
  10. def deref(addr, typ):
  11. return ctypes.cast(addr, ctypes.POINTER(typ)).contents
  12. print(deref(1, ctypes.c_int))
  13. return 0
  14. @@);
  15. select $f(0);