Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / arc / sdata-4.c
blob45fe71256763e506d9ae2e20e096e65f46d32aa5
1 /* Check if sdata access is done correctly, specially
2 for variables which are having a different alignment
3 than the default data type indicates. */
4 /* { dg-do compile } */
5 /* { dg-options "-O2" } */
7 short gA __attribute__ ((aligned(1)));
9 void foo (void)
11 gA += gA + 3;
14 /* { dg-final { scan-assembler-not "ld\[wh\]_s r0,\\\[gp" } } */
15 /* { dg-final { scan-assembler-not "st\[wh\]\\\.as.*gp" } } */