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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20010123-1.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
extern void abort ();
2
extern void exit (int);
3
 
4
struct s
5
{
6
    int value;
7
    char *string;
8
};
9
 
10
int main (void)
11
{
12
  int i;
13
  for (i = 0; i < 4; i++)
14
    {
15
      struct s *t = & (struct s) { 3, "hey there" };
16
      if (t->value != 3)
17
        abort();
18
      t->value = 4;
19
      if (t->value != 4)
20
        abort();
21
    }
22
  exit (0);
23
}

powered by: WebSVN 2.1.0

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