summaryrefslogtreecommitdiff
path: root/libmudflap/testsuite/libmudflap.c/hook2-allocstuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmudflap/testsuite/libmudflap.c/hook2-allocstuff.c')
-rw-r--r--libmudflap/testsuite/libmudflap.c/hook2-allocstuff.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libmudflap/testsuite/libmudflap.c/hook2-allocstuff.c b/libmudflap/testsuite/libmudflap.c/hook2-allocstuff.c
new file mode 100644
index 000000000..d8fbec467
--- /dev/null
+++ b/libmudflap/testsuite/libmudflap.c/hook2-allocstuff.c
@@ -0,0 +1,9 @@
+/* Generates recursive malloc call on i386-freebsd4.10 with -fmudflap. */
+#include <stdlib.h>
+
+int
+main (void)
+{
+ char *p = malloc (1<<24);
+ return 0;
+}