changeset 1375:9ad3ba500299

[Issue 136] Corrupt GDB backtrace Oskar Linde <oskar.linde@gmail.com> 2006-05-11 http://d.puremagic.com/issues/show_bug.cgi?id=136
author thomask
date Tue, 27 Feb 2007 16:43:30 +0000
parents 359e658d128f
children 0428e69041c3
files norun/d/debug_info_12_A.d
diffstat 1 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/norun/d/debug_info_12_A.d	Tue Feb 27 16:43:30 2007 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Oskar Linde <oskar.linde@gmail.com>
+// @date@	2006-05-11
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=136
+// @desc@	[Issue 136] Corrupt GDB backtrace
+
+// __GDB_SCRIPT__ run\nbacktrace
+// __GDB_PATTERN__ in main
+
+module dstress.norun.d.debug_info_12_A;
+
+int main() {
+	static int i = 0;
+	while(i++ < 10)
+		main();
+	*(cast(int *)0) = 0;
+	return 0;
+}