Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / arm / attr_thumb.c
blobeac47139dbfe627c1bde702726823d13c9e11fde
1 /* Check that attribute target thumb is recognized. */
2 /* { dg-do compile } */
3 /* Make sure the current multilib supports thumb. */
4 /* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */
5 /* { dg-options "-O2 -mno-restrict-it" } */
6 /* { dg-final { scan-assembler-not "\\.arm" } } */
7 /* { dg-final { scan-assembler "\\.thumb_func" } } */
9 int __attribute__((target("thumb")))
10 foo(int a)
12 /* { dg-final { scan-assembler "ite" { target { arm_thumb2_ok } } } } */
13 return a ? 1 : 5;