blob: 58e0e35822ec9618a1f466ea4385f79630e5b8df [file] [log] [blame]
// RUN: test.sh -e -t %t %s
// XFAIL: darwin
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
// Example of incorrect usage of stat().
int
main() {
char name[1024];
struct stat info;
memset (name, 'c', 1024);
if (stat (name, &info))
printf ("okay\n");
return 0;
}