gcc/testsuite/gcc.target/avr/torture/builtins-error.c
raw| 1 | /* { dg-do assemble } */ |
| 2 | /* { dg-options "-ffat-lto-objects" } */ |
| 3 | |
| 4 | char insert (long a) |
| 5 | { |
| 6 | return __builtin_avr_insert_bits (15.3f+a, 0, 0); /* { dg-error "expects a compile time" } */ |
| 7 | } |
| 8 | |
| 9 | void delay (long a) |
| 10 | { |
| 11 | __builtin_avr_delay_cycles (a); /* { dg-error "expects a compile time" } */ |
| 12 | } |