f35ea21826
* configure.in: Add options for gdbtk testsuite. * configure: Regenerate. * gdb.gdbtk: New directory to hold gdbtk tests. * gdb.gdbtk/console.{exp, test}: New console window tests.
19 lines
291 B
C
19 lines
291 B
C
void
|
|
main(int argc, char * argv[])
|
|
{
|
|
int i;
|
|
char *a;
|
|
char *b = "abc";
|
|
long foo;
|
|
|
|
a = (char *) malloc (300);
|
|
|
|
for (i=0; i < 50; i++)
|
|
{
|
|
int j = i % 3;
|
|
int k = 3 - j;
|
|
strncpy (a[i], b[k], j);
|
|
foo = (long) j * k / i + 2 * k * k * k;
|
|
}
|
|
}
|
|
|