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 } */ 5 6 void * foo(int offset)7foo (int offset) 8 { 9 switch (offset) 10 { 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); 21 } 22 return 0; 23 } 24