aboutsummaryrefslogtreecommitdiff
path: root/tests/core
diff options
context:
space:
mode:
Diffstat (limited to 'tests/core')
-rw-r--r--tests/core/test_demangle_stacks.in21
-rw-r--r--tests/core/test_demangle_stacks.out1
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/core/test_demangle_stacks.in b/tests/core/test_demangle_stacks.in
new file mode 100644
index 00000000..8db34832
--- /dev/null
+++ b/tests/core/test_demangle_stacks.in
@@ -0,0 +1,21 @@
+
+ #include<stdio.h>
+ #include<stdlib.h>
+
+ namespace NameSpace {
+ class Class {
+ public:
+ int Aborter(double x, char y, int *z) {
+ int addr = x+y+(int)z;
+ void *p = (void*)addr;
+ for (int i = 0; i < 100; i++) free(p); // will abort, should show proper stack trace
+ }
+ };
+ }
+
+ int main(int argc, char **argv) {
+ NameSpace::Class c;
+ c.Aborter(1.234, 'a', NULL);
+ return 0;
+ }
+ \ No newline at end of file
diff --git a/tests/core/test_demangle_stacks.out b/tests/core/test_demangle_stacks.out
new file mode 100644
index 00000000..d1c61b45
--- /dev/null
+++ b/tests/core/test_demangle_stacks.out
@@ -0,0 +1 @@
+NameSpace::Class::Aborter(double, char, int*) \ No newline at end of file