Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pr49994-3.c
blob72930932f8d30b0098d8a6f7cd0649f1d559e4e5
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fsched2-use-superblocks -g -w" } */
3 /* { dg-options "-O2 -fsched2-use-superblocks -g -mbackchain" { target s390*-*-* } } */
4 /* { dg-require-effective-target scheduling } */
6 void *
7 foo (int offset)
9 switch (offset)
11 case 0:
12 return __builtin_return_address (0);
13 case 1:
14 return __builtin_return_address (1);
15 case 2:
16 return __builtin_return_address (2);
17 case 3:
18 return __builtin_return_address (3);
19 case 4:
20 return __builtin_return_address (4);
22 return 0;