OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [921117-1.c] - Blame information for rev 301

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
struct s {
2
  char text[11];
3
  int flag;
4
} cell;
5
 
6
int
7
check (struct s p)
8
{
9
  if (p.flag != 99)
10
    return 1;
11
  return strcmp (p.text, "0123456789");
12
}
13
 
14
main ()
15
{
16
  cell.flag = 99;
17
  strcpy (cell.text, "0123456789");
18
 
19
  if (check (cell))
20
    abort();
21
  exit (0);
22
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.