gcc/testsuite/gcc.target/arm/attr_arm.c
raw| 1 | /* Check that attribute target arm is recognized. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-skip-if "" arm_cortex_m } */ |
| 4 | /* { dg-final { scan-assembler "\\.arm" } } */ |
| 5 | /* { dg-final { scan-assembler-not "\\.thumb_func" } } */ |
| 6 | |
| 7 | int __attribute__((target("arm"))) |
| 8 | foo(int a) |
| 9 | { |
| 10 | return a ? 1 : 5; |
| 11 | } |
| 12 |