blob: 4036113037e3b3d102cc4a6aa915c44cbd783aa0 [file] [log] [blame]
// RUN: test.sh -e -t %t %s silly
//
// TEST: argv-002
//
// Description:
// Test that array bounds checking works on argv strings
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int
main (int argc, char ** argv) {
int index = 0;
for (index = 0; index < strlen (argv[0]) + 2; ++index) {
printf ("%c", argv[0][index]);
}
return 0;
}