Octave: do not dump Octave core in examples/test suite scripts
- If Octave segfaults during cleanup, it usually cannot dump its core and therefore just freezes, which hold up e.g Travis build jobs
This commit is contained in:
parent
70801d47d1
commit
9e66af3fef
99 changed files with 481 additions and 14 deletions
|
|
@ -1,4 +1,7 @@
|
|||
# file: runme.m
|
||||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
# This file illustrates the cross language polymorphism using directors.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
# file: runme.m
|
||||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
# This file illustrates the proxy class C++ interface generated
|
||||
# by SWIG.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
# file: runme.m
|
||||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
swigexample
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
# file: runme.m
|
||||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
swigexample
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
# file: runme.m
|
||||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
swigexample
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
# file: runme.m
|
||||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
# This file illustrates the cross language polymorphism using directors.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
# file: runme.m
|
||||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
swigexample
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
# file: runme.m
|
||||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
swigexample
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
# Operator overloading example
|
||||
swigexample
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
# file: runme_args.m
|
||||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
# load module
|
||||
clear all;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
# Operator overloading example
|
||||
swigexample
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
# file: runme.m
|
||||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
swigexample;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
# file: runme.m
|
||||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
# This file illustrates the manipulation of C++ references in Octave
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
# file: runme.m
|
||||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
swigexample
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
# file: runme.m
|
||||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
swigexample
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
# file: runme.m
|
||||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
swigexample
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
abstract_typedef2
|
||||
|
||||
a = A_UF();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
abstract_typedef
|
||||
e = Engine();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
abstract_virtual
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
arrays_global
|
||||
|
||||
arrays_global.cvar.array_i = arrays_global.cvar.array_const_i;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
class_ignore
|
||||
|
||||
a = class_ignore.Bar();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
complextest
|
||||
|
||||
a = complex(-1,2);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
constover
|
||||
|
||||
p = constover.test("test");
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
constructor_copy
|
||||
|
||||
f1 = Foo1(3);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
default_args
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
default_constructor
|
||||
|
||||
dc = default_constructor;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
director_abstract
|
||||
|
||||
MyFoo=@() subclass(director_abstract.Foo(),@ping);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
director_classic
|
||||
|
||||
TargetLangPerson=@() subclass(Person(),'id',@(self) "TargetLangPerson");
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
director_extend
|
||||
|
||||
MyObject=@() subclass(SpObject(),'getFoo',@(self) 123);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
director_stl
|
||||
|
||||
MyFoo=@() subclass(director_stl.Foo(),\
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
director_string
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
director_wstring
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
dynamic_cast
|
||||
|
||||
f = dynamic_cast.Foo();
|
||||
|
|
|
|||
|
|
@ -1,2 +1,7 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
empty_c
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +1,7 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
empty
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
enum_template
|
||||
|
||||
if (enum_template.MakeETest() != 1)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
exception_order
|
||||
|
||||
function check_lasterror(expected)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
extend_template_ns
|
||||
|
||||
f = Foo_One();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
friends
|
||||
|
||||
a = friends.A(2);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
global_ns_arg
|
||||
|
||||
a = foo(1);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
grouping
|
||||
|
||||
x = grouping.test1(42);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
input
|
||||
|
||||
f = Foo();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
li_attribute
|
||||
|
||||
aa = li_attribute.A(1,2,3);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
1;
|
||||
li_boost_shared_ptr;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
li_carrays_cpp
|
||||
|
||||
d = doubleArray(10);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
li_carrays
|
||||
|
||||
d = doubleArray(10);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
li_cmalloc
|
||||
|
||||
p = malloc_int();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
li_cpointer
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
li_cstring
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
li_cwstring
|
||||
|
||||
if (count("ab\0ab\0ab\0", 0) != 3)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
li_factory
|
||||
|
||||
circle = Geometry_create(Geometry.CIRCLE);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
li_implicit
|
||||
b = B();
|
||||
ai = A(1);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
li_std_pair_extra
|
||||
|
||||
p = {1,2};
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
li_std_vector_enum
|
||||
|
||||
function check(a, b)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
li_std_wstring
|
||||
|
||||
x="h";
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
minherit
|
||||
|
||||
a = minherit.Foo();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
mod_a
|
||||
mod_b
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
multi_import_a;
|
||||
multi_import_b;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
naturalvar
|
||||
|
||||
f = Foo();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
null_pointer;
|
||||
|
||||
assert(func([]));
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
octave_cell_deref;
|
||||
|
||||
assert(func("hello"));
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
overload_complicated
|
||||
|
||||
pInt = None;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
overload_extend_c
|
||||
|
||||
f = overload_extend_c.Foo();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
overload_extend
|
||||
|
||||
f = overload_extend.Foo();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
overload_simple_cast
|
||||
|
||||
Ai=@(x) subclass('x',x,'__int',@(self) self.x);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
overload_subtype
|
||||
|
||||
f = Foo();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
preproc
|
||||
|
||||
if (preproc.cvar.endif != 1)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
refcount
|
||||
#
|
||||
# very innocent example
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
ret_by_value
|
||||
|
||||
a = ret_by_value.get_test();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
smart_pointer_extend
|
||||
|
||||
f = Foo();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
smart_pointer_overload
|
||||
|
||||
f = Foo();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
smart_pointer_rename
|
||||
|
||||
f = Foo();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
smart_pointer_simple
|
||||
|
||||
f = Foo();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
smart_pointer_typedef
|
||||
|
||||
f = Foo();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
sneaky1
|
||||
x = sneaky1.add(3,4);
|
||||
y = sneaky1.subtract(3,4);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
static_const_member_2
|
||||
|
||||
c = Test_int();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
std_containers
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
struct_value
|
||||
|
||||
b = struct_value.Bar();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
swigobject
|
||||
|
||||
a = A();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
template_default_arg
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
template_extend1
|
||||
|
||||
a = template_extend1.lBaz();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
template_extend2
|
||||
|
||||
a = template_extend2.lBaz();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
template_inherit
|
||||
a = FooInt();
|
||||
b = FooDouble();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
template_matrix
|
||||
passVector([1,2,3]);
|
||||
passMatrix({[1,2],[1,2,3]});
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
template_ns4
|
||||
|
||||
d = make_Class_DD();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
template_opaque
|
||||
|
||||
v = template_opaque.OpaqueVectorType(10);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
template_ref_type
|
||||
|
||||
xr = template_ref_type.XC();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
template_static
|
||||
|
||||
Foo_bar_double(1);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
template_typedef_cplx4
|
||||
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
template_typedef_cplx2
|
||||
template_typedef_import
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
typedef_class
|
||||
|
||||
a = typedef_class.RealA();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
typedef_inherit
|
||||
|
||||
a = typedef_inherit.Foo();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
typename
|
||||
f = typename.Foo();
|
||||
b = typename.Bar();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
using1
|
||||
|
||||
if (using1.spam(37) != 37)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
using2
|
||||
|
||||
if (using2.spam(37) != 37)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
using_composition
|
||||
|
||||
f = FooBar();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
using_extend
|
||||
|
||||
f = FooBar();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
using_protected
|
||||
|
||||
f = FooBar();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
# do not dump Octave core
|
||||
if exist("crash_dumps_octave_core", "builtin")
|
||||
crash_dumps_octave_core(0);
|
||||
endif
|
||||
|
||||
voidtest
|
||||
|
||||
voidtest.globalfunc();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue