PR middle-end/27945
[official-gcc.git] / gcc / testsuite / gcc.dg / pr30951.c
blob149b8ecaafd43345492b22376cd6cc06702642a3
1 /* { dg-do link } */
3 extern void link_error (void);
5 void test (int x, unsigned int y)
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)
17 else
18 link_error ();
19 if (x != x + 10)
21 else
22 link_error ();
23 if (y + 5 != y)
25 else
26 link_error ();
27 if (y != y + 10)
29 else
30 link_error ();
33 int main()
35 return 0;