1 /* { dg-do run } */
2 /* { dg-options "-Os -fno-tree-switch-conversion -ffunction-sections -fdata-sections" } */
3
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. */
7
8 #define SECTION_NAME ".foo"
9
10 #include "exit-abort.h"
11 #include "pr71151-common.h"
12
13 int main()
14 {
15 foo(5);
16 if (y != 37)
17 abort();
18
19 foo(0);
20 if (y != 67)
21 abort();
22
23 foo(7);
24 if (y != 98)
25 abort();
26 }