summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/alloca/alloca.c
blob: 4f1f18396a164d5a1fbbce157200d7a0e7f84348 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*	$OpeBSD$	*/

/*	Copyright (c) 2003 Michael Shalayeff. Public Domain.	*/

#include <stdio.h>

int
main()
{
	char *q, *p;

	p = alloca(41);
	strcpy(p, "hellow world");

	q = alloca(53);
	strcpy(q, "hellow world");

	exit(strcmp(p, q));
}