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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr40321.c] - Blame information for rev 745

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

Line No. Rev Author Line
1 688 jeremybenn
struct X { int flag; int pos; };
2
int foo(struct X *a, struct X *b)
3
{
4
  while (1)
5
    {
6
      if (a->flag)
7
        break;
8
      ({ struct X *tmp = a; a = b; b = tmp; });
9
    }
10
 
11
  return a->pos + b->pos;
12
}

powered by: WebSVN 2.1.0

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