@@ -0,0 +1,6 @@
+#ifndef _ALLOCA_H
+#define _ALLOCA_H
+
+#define alloca(size) __builtin_alloca (size)
+#endif /* _ALLOCA_H */
@@ -1,5 +1,6 @@
# Binaries that should generate the same output every time
EXPECT_BINS=\
+ alloca \
args \
arpainet \
assert \
@@ -0,0 +1,12 @@
+#include <alloca.h>
+#include <stdio.h>
+#include <string.h>
+int main(int argc, char ** argv) {
+ char *str = (char *) alloca(17);
+ memset(str, 'A', 16);
+ str[16] = '\0';
+ printf("%s\n", str);
+}
@@ -0,0 +1 @@
+AAAAAAAAAAAAAAAA