aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.7/libmudflap/testsuite/libmudflap.c/hook2-allocstuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.7/libmudflap/testsuite/libmudflap.c/hook2-allocstuff.c')
-rw-r--r--gcc-4.7/libmudflap/testsuite/libmudflap.c/hook2-allocstuff.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc-4.7/libmudflap/testsuite/libmudflap.c/hook2-allocstuff.c b/gcc-4.7/libmudflap/testsuite/libmudflap.c/hook2-allocstuff.c
new file mode 100644
index 000000000..d8fbec467
--- /dev/null
+++ b/gcc-4.7/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;
+}