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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20050131-1.c] - Blame information for rev 816

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

Line No. Rev Author Line
1 297 jeremybenn
/* Verify that we do not lose side effects on a MOD expression.  */
2
 
3
#include <stdlib.h>
4
#include <stdio.h>
5
 
6
int
7
foo (int a)
8
{
9
  int x = 0 % a++;
10
  return a;
11
}
12
 
13
main()
14
{
15
  if (foo (9) != 10)
16
    abort ();
17
  exit (0);
18
}

powered by: WebSVN 2.1.0

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