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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20000511-1.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
void f (int value, int expect)
2
{
3
  if (value != expect)
4
    abort ();
5
}
6
 
7
int main()
8
{
9
  int a = 7, b = 6, c = 4, d = 7, e = 2;
10
 
11
  f (a||b%c,   1);
12
  f (a?b%c:0,  2);
13
  f (a=b%c,    2);
14
  f (a*=b%c,   4);
15
  f (a/=b%c,   2);
16
  f (a%=b%c,   0);
17
  f (a+=b%c,   2);
18
  f (d||c&&e,  1);
19
  f (d?c&&e:0, 1);
20
  f (d=c&&e,   1);
21
  f (d*=c&&e,  1);
22
  f (d%=c&&e,  0);
23
  f (d+=c&&e,  1);
24
  f (d-=c&&e,  0);
25
  f (d||c||e,  1);
26
  f (d?c||e:0, 0);
27
  f (d=c||e,   1);
28
  f (d*=c||e,  1);
29
  f (d%=c||e,  0);
30
  f (d+=c||e,  1);
31
  f (d-=c||e,  0);
32
  exit (0);
33
}

powered by: WebSVN 2.1.0

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