Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / avr / pr71151-2.c
blobf745841df8a66fba27cab29160770545d3d54d0b
1 /* { dg-do run } */
2 /* { dg-options "-Os -fno-tree-switch-conversion -ffunction-sections -fdata-sections" } */
4 /* Make sure jumptables work properly if placed below 64 KB i.e. 2 byte
5 flash address for loading jump table entry, 2 byte entry, after
6 removing the special section placement hook. */
8 #define SECTION_NAME ".foo"
10 #include "exit-abort.h"
11 #include "pr71151-common.h"
13 int main()
15 foo(5);
16 if (y != 37)
17 abort();
19 foo(0);
20 if (y != 67)
21 abort();
23 foo(7);
24 if (y != 98)
25 abort();