summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr30951.c
blob: 149b8ecaafd43345492b22376cd6cc06702642a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* { dg-do link } */

extern void link_error (void);

void test (int x, unsigned int y)
{
  if (x + 5 == x)
    link_error ();
  if (x == x + 10)
    link_error ();
  if (y + 5 == y)
    link_error ();
  if (y == y + 10)
    link_error ();
  if (x + 5 != x)
    ;
  else
    link_error ();
  if (x != x + 10)
    ;
  else
    link_error ();
  if (y + 5 != y)
    ;
  else
    link_error ();
  if (y != y + 10)
    ;
  else
    link_error ();
}

int main()
{
  return 0;
}