gcc/testsuite/gcc.target/avr/torture/pr83801.c
raw| 1 | /* { dg-options { "-std=gnu99" } } */ |
| 2 | /* { dg-do run { target { ! avr_tiny } } } */ |
| 3 | |
| 4 | __attribute((noipa)) |
| 5 | char to_ascii (unsigned i) |
| 6 | { |
| 7 | static const char __flash code_tab[] = "0123456789"; |
| 8 | return code_tab[i]; |
| 9 | } |
| 10 | |
| 11 | int main() |
| 12 | { |
| 13 | if (to_ascii (2) != '2') |
| 14 | __builtin_abort(); |
| 15 | |
| 16 | return 0; |
| 17 | } |