PR rtl-opt/49994
[official-gcc.git] / gcc / testsuite / gcc.dg / pr49994-3.c
blob874db966653c9fd12be7118589c936c5e210eb56
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fsched2-use-superblocks -g" } */
4 void *
5 foo (int offset)
7 switch (offset)
9 case 0:
10 return __builtin_return_address (0);
11 case 1:
12 return __builtin_return_address (1);
13 case 2:
14 return __builtin_return_address (2);
15 case 3:
16 return __builtin_return_address (3);
17 case 4:
18 return __builtin_return_address (4);
20 return 0;