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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr30951.c] - Blame information for rev 750

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do link } */
2
 
3
extern void link_error (void);
4
 
5
void test (int x, unsigned int y)
6
{
7
  if (x + 5 == x)
8
    link_error ();
9
  if (x == x + 10)
10
    link_error ();
11
  if (y + 5 == y)
12
    link_error ();
13
  if (y == y + 10)
14
    link_error ();
15
  if (x + 5 != x)
16
    ;
17
  else
18
    link_error ();
19
  if (x != x + 10)
20
    ;
21
  else
22
    link_error ();
23
  if (y + 5 != y)
24
    ;
25
  else
26
    link_error ();
27
  if (y != y + 10)
28
    ;
29
  else
30
    link_error ();
31
}
32
 
33
int main()
34
{
35
  return 0;
36
}

powered by: WebSVN 2.1.0

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