Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / arm / constant-pool.c
blob8427dfb1a80f5a1c933b12b9b486e5308c06023a
1 /* { dg-do run } */
2 /* { dg-options "-O1" } */
4 unsigned short v = 0x5678;
5 int i;
6 int j = 0;
7 int *ptr = &j;
9 int
10 func (void)
12 for (i = 0; i < 1; ++i)
14 *ptr = -1;
15 v = 0x1234;
17 return v;
20 int
21 main (void)
23 func ();
24 if (v != 0x1234)
25 __builtin_abort ();
26 return 0;